Class Index [+]

Quicksearch

Sequel::Plugins::AssociationDependencies::InstanceMethods

Public Instance Methods

after_destroy() click to toggle source

Run the delete and destroy association dependency actions for many_to_one associations.

    # File lib/sequel/plugins/association_dependencies.rb, line 86
86:         def after_destroy
87:           super
88:           model.association_dependencies[:after_delete].each{|m| send(m).delete}
89:           model.association_dependencies[:after_destroy].each{|m| send(m).destroy}
90:         end
before_destroy() click to toggle source

Run the delete, destroy, and nullify association dependency actions for *_to_many associations.

    # File lib/sequel/plugins/association_dependencies.rb, line 94
94:         def before_destroy
95:           model.association_dependencies[:before_delete].each{|m| send(m).delete}
96:           model.association_dependencies[:before_destroy].each{|m| send(m).destroy}
97:           model.association_dependencies[:before_nullify].each{|p| instance_eval(&p)}
98:           super
99:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.