Sha256: ca08062bdf058c4011a914054240e4fcb34cde7ad263d49561827ccef6a51a57
Contents?: true
Size: 346 Bytes
Versions: 1
Compression:
Stored size: 346 Bytes
Contents
module DestroyedAt module HasOneAssociation def delete(method = options[:dependent]) if load_target && method == :destroy DestroyedAt.destroy_target_of_association(target, owner) else super end end end end ActiveRecord::Associations::HasOneAssociation.send(:prepend, DestroyedAt::HasOneAssociation)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
destroyed_at-1.0.0 | lib/destroyed_at/has_one_association.rb |