instance method
marked_for_destruction?
Ruby on Rails 6.1.7.10
Since v2.3.18Signature
marked_for_destruction?()
Returns whether or not this record will be destroyed as part of the parent’s save transaction.
Only useful if the :autosave option on the parent is enabled for this associated model.
Source
# File activerecord/lib/active_record/autosave_association.rb, line 267
def marked_for_destruction?
@marked_for_destruction
end
Defined in activerecord/lib/active_record/autosave_association.rb line 267
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AutosaveAssociation