method
validate?
v3.2.13 -
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