aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-10-02 15:31:26 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-10-02 15:31:26 -0700
commit0af978d33489c3ab54084c26d1354837b16f0cf5 (patch)
tree74d08c72e6360300961bd773f7932834dd619d48 /activerecord/lib
parent7a38eae0075b4f38462be267fa80a4ff366fdd00 (diff)
downloadrails-0af978d33489c3ab54084c26d1354837b16f0cf5.tar.gz
rails-0af978d33489c3ab54084c26d1354837b16f0cf5.tar.bz2
rails-0af978d33489c3ab54084c26d1354837b16f0cf5.zip
call the class method to define the callbacks
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/associations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index c5df10cae9..6ceefdf879 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -1584,7 +1584,7 @@ module ActiveRecord
middle_options)
middle_reflection = hm_builder.build self
- hm_builder.define_callbacks self, middle_reflection
+ Builder::HasMany.define_callbacks self, middle_reflection
Reflection.add_reflection self, middle_reflection.name, middle_reflection