instance method
destroyed_by_association=
Ruby on Rails 7.1.6
Since v4.0.13Signature
destroyed_by_association=(reflection)
Records the association that is being destroyed and destroying this record in the process.
Parameters
-
reflectionreq
Source
# File activerecord/lib/active_record/autosave_association.rb, line 258
def destroyed_by_association=(reflection)
@destroyed_by_association = reflection
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