method
validate?
v4.1.8 -
Show latest stable
- Class:
ActiveRecord::Reflection::AssociationReflection
validate?()public
Returns whether or not the association should be validated as part of the parent’s validation.
Unless you explicitly disable validation with validate: false, validation will take place when:
-
you explicitly enable validation; validate: true
-
you use autosave; autosave: true
-
the association is a has_many association