Method: ActiveRecord::Associations::Builder::CollectionAssociation.define_callbacks

Defined in:
activerecord/lib/active_record/associations/builder/collection_association.rb

.define_callbacks(model, reflection) ⇒ Object



13
14
15
16
17
18
19
20
# File 'activerecord/lib/active_record/associations/builder/collection_association.rb', line 13

def self.define_callbacks(model, reflection)
  super
  name    = reflection.name
  options = reflection.options
  CALLBACKS.each { |callback_name|
    define_callback(model, callback_name, name, options)
  }
end