instance method
destroyed_by_association=
Ruby on Rails 6.1.7.10
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 273
def destroyed_by_association=(reflection)
@destroyed_by_association = reflection
end
Defined in activerecord/lib/active_record/autosave_association.rb line 273
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AutosaveAssociation