Flowdock
method

define_callbacks

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: Association
define_callbacks(model, reflection) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/builder/association.rb, line 76
    def self.define_callbacks(model, reflection)
      if dependent = reflection.options[:dependent]
        check_dependent_options(dependent, model)
        add_destroy_callbacks(model, reflection)
        add_after_commit_jobs_callback(model, dependent)
      end

      Association.extensions.each do |extension|
        extension.build model, reflection
      end
    end
Register or log in to add new notes.