method
validate?
v2.3.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 explicitely disable validation with :validate => false, it will take place when:
- you explicitely enable validation; :validate => true
- you use autosave; :autosave => true
- the association is a has_many association