Method: Sequel::Plugins::AssociationDependencies::InstanceMethods#after_destroy
- Defined in:
- lib/sequel/plugins/association_dependencies.rb
#after_destroy ⇒ Object
Run the delete and destroy association dependency actions for many_to_one associations.
89 90 91 92 93 |
# File 'lib/sequel/plugins/association_dependencies.rb', line 89 def after_destroy super model.association_dependencies[:after_delete].each{|m| public_send(m).delete} model.association_dependencies[:after_destroy].each{|m| public_send(m).destroy} end |