Method: MotionPrime::BaseFieldSection#has_errors?

Defined in:
motion-prime/sections/form/base_field_section.rb

#has_errors?Boolean

Returns:

  • (Boolean)


136
137
138
139
# File 'motion-prime/sections/form/base_field_section.rb', line 136

def has_errors?
  return false unless observing_errors?
  observing_errors_for.errors.info.slice(*errors_observer_fields).values.any?(&:present?)
end