Method: ActiveType::NestedAttributes::Association#validate
- Defined in:
- lib/active_type/nested_attributes/association.rb
#validate(parent) ⇒ Object
47 48 49 50 51 |
# File 'lib/active_type/nested_attributes/association.rb', line 47 def validate(parent) changed_children(parent).each_with_index do |child, index| add_errors_to_parent(parent, child, index) unless child.valid? end end |