class ActiveRecord::Associations::CollectionAssociation

def callback(method, record)

def callback(method, record)
  callbacks_for(method).each do |callback|
    callback.call(method, owner, record)
  end
end