instance method
destroyed?
Ruby on Rails 6.0.6
Since v3.0.20Signature
destroyed?()
Returns true if this object has been destroyed, otherwise returns false.
Source
# File activerecord/lib/active_record/persistence.rb, line 432
def destroyed?
sync_with_transaction_state if @transaction_state&.finalized?
@destroyed
end
Defined in activerecord/lib/active_record/persistence.rb line 432
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Persistence