Module: DestroyedAt::BelongsToAssociation
- Defined in:
- lib/destroyed_at/belongs_to_association.rb
Instance Method Summary collapse
Instance Method Details
#handle_dependency ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/destroyed_at/belongs_to_association.rb', line 3 def handle_dependency if load_target if [:dependent] == :destroy && target.respond_to?(:destroyed_at) target.destroy(owner.destroyed_at) else super end end end |