lib/operations/result.rb
# Checks if ANY of the passed precondition or policy codes have failed
# If nothing is passed - checks that ANY precondition or policy have failed
Checks if ANY of the passed precondition or policy codes have failed
If nothing is passed - checks that ANY precondition or policy have failed
Checks if ANY of the passed precondition or policy codes have failed If nothing is passed - checks that ANY precondition or policy have failed
def failed_precheck?(*names)
    failure? &&
      %i[policies preconditions].include?(component) &&
      (names.blank? || errors_with_code?(*names))
  end
def failed_precheck? ( * names ) failure? && %i[ policies preconditions ] . include? ( component ) && ( names . blank? || errors_with_code? ( * names ) ) end
Checks if ANY of the passed precondition or policy codes have failed
If nothing is passed - checks that ANY precondition or policy have failed
Checks if ANY of the passed precondition or policy codes have failed If nothing is passed - checks that ANY precondition or policy have failed
names
<not_specific>