Module: DestroyedAt::HasOneAssociation
- Defined in:
- lib/destroyed_at/has_one_association.rb
Instance Method Summary collapse
Instance Method Details
#delete(method = options[:dependent]) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/destroyed_at/has_one_association.rb', line 3 def delete(method = [:dependent]) if load_target && DestroyedAt.has_destroy_at?(target) && method == :destroy DestroyedAt.destroy_target_of_association(owner, target) else super end end |