aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activerecord/lib/active_record/associations/builder/collection_association.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/builder/collection_association.rb b/activerecord/lib/active_record/associations/builder/collection_association.rb
index 708eceaa32..22e8479b71 100644
--- a/activerecord/lib/active_record/associations/builder/collection_association.rb
+++ b/activerecord/lib/active_record/associations/builder/collection_association.rb
@@ -63,7 +63,7 @@ module ActiveRecord::Associations::Builder
when Proc
->(method, owner, record) { callback.call(owner, record) }
else
- ->(method,owner,record) { callback.send(method, owner, record) }
+ ->(method, owner, record) { callback.send(method, owner, record) }
end
end
model.send "#{full_callback_name}=", callbacks