Sha256: d3d5b3505288441e0b20311f33cc1bcb987899021330af4658bb81ecef7a2ab8
Contents?: true
Size: 349 Bytes
Versions: 3
Compression:
Stored size: 349 Bytes
Contents
module DestroyedAt module BelongsToAssociation def handle_dependency if load_target && options[:dependent] == :destroy DestroyedAt.destroy_target_of_association(owner, target) else super end end end end ActiveRecord::Associations::BelongsToAssociation.send(:prepend, DestroyedAt::BelongsToAssociation)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
destroyed_at-2.1.0 | lib/destroyed_at/belongs_to_association.rb |
destroyed_at-2.0.0 | lib/destroyed_at/belongs_to_association.rb |
destroyed_at-1.0.2 | lib/destroyed_at/belongs_to_association.rb |