method
association_valid?
v3.2.13 -
Show latest stable
- Class:
ActiveRecord::AutosaveAssociation
association_valid?(reflection, record)private
Returns whether or not the association is valid and applies any errors to the parent, self, if it wasn’t. Skips any :autosave enabled records if they’re marked_for_destruction? or destroyed.