Method: Formidable::GroupValidations#validate
- Defined in:
- lib/formidable/validations.rb
#validate ⇒ Object
77 78 79 80 81 82 83 84 85 86 |
# File 'lib/formidable/validations.rb', line 77 def validate self.errors.clear self.before_validate self.elements.each do |element| unless element.valid? errors[element.name] = element.errors end end self.errors.empty? end |