method

destroyed_by_association

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveRecord::AutosaveAssociation
destroyed_by_association() public

Returns the association for the parent being destroyed.

Used to avoid updating the counter cache unnecessarily.

Show source
Register or log in to add new notes.