diff --git a/activerecord/lib/active_record/associations/builder/collection_association.rb b/activerecord/lib/active_record/associations/builder/collection_association.rb index 38a70f3efd24828264242eeae513fa98c70451b9..d640446a6d0ff7655d0718528a1029970092c11c 100644 --- a/activerecord/lib/active_record/associations/builder/collection_association.rb +++ b/activerecord/lib/active_record/associations/builder/collection_association.rb @@ -25,8 +25,10 @@ def initialize(name, scope, options) def define_callbacks(model, reflection) super + name = reflection.name + options = reflection.options CALLBACKS.each { |callback_name| - define_callback(model, callback_name, reflection.name, reflection.options) + define_callback(model, callback_name, name, options) } end