instance method
owner_destroyed?
Ruby on Rails 8.0.4
Since v6.1.7.10 PrivateSignature
owner_destroyed?(owner, ensuring_owner_was_method)
No documentation comment.
Parameters
-
ownerreq -
ensuring_owner_was_methodreq
Source
# File activerecord/lib/active_record/destroy_association_async_job.rb, line 34
def owner_destroyed?(owner, ensuring_owner_was_method)
!owner || (ensuring_owner_was_method && owner.public_send(ensuring_owner_was_method))
end
Defined in activerecord/lib/active_record/destroy_association_async_job.rb line 34
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::DestroyAssociationAsyncJob