instance method
destroyed_by_association
Ruby on Rails 4.1.16
Since v4.0.13Signature
destroyed_by_association()
Returns the association for the parent being destroyed.
Used to avoid updating the counter cache unnecessarily.
Source
# File activerecord/lib/active_record/autosave_association.rb, line 258
def destroyed_by_association
@destroyed_by_association
end
Defined in activerecord/lib/active_record/autosave_association.rb line 258
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AutosaveAssociation