class ActiveModel::Datastore::NestedAttr::AssociatedValidator
Public Instance Methods
validate_each(record, attribute, value)
click to toggle source
# File lib/active_model/datastore/nested_attr.rb, line 248 def validate_each(record, attribute, value) return unless Array(value).reject(&:valid?).any? record.errors.add(attribute, :invalid, options.merge(value: value)) end