aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/autosave_association.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-07-22 17:59:42 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-07-22 17:59:42 -0700
commitbb1492e334e2d2efccb9d3c111648b895f626633 (patch)
treec8d3fee94674b6daa7c0509d75535f273b237e33 /activerecord/lib/active_record/autosave_association.rb
parent1ccc132832b8f01dece261bcaeb0a7da85444ee6 (diff)
downloadrails-bb1492e334e2d2efccb9d3c111648b895f626633.tar.gz
rails-bb1492e334e2d2efccb9d3c111648b895f626633.tar.bz2
rails-bb1492e334e2d2efccb9d3c111648b895f626633.zip
decouple extensions from association object state
Diffstat (limited to 'activerecord/lib/active_record/autosave_association.rb')
-rw-r--r--activerecord/lib/active_record/autosave_association.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/autosave_association.rb b/activerecord/lib/active_record/autosave_association.rb
index c991c870ed..e06405d043 100644
--- a/activerecord/lib/active_record/autosave_association.rb
+++ b/activerecord/lib/active_record/autosave_association.rb
@@ -127,7 +127,7 @@ module ActiveRecord
extend ActiveSupport::Concern
module AssociationBuilderExtension #:nodoc:
- def build
+ def build(model, reflection)
model.send(:add_autosave_association_callbacks, reflection)
super
end