diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-02 15:31:26 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-02 15:31:26 -0700 |
commit | 0af978d33489c3ab54084c26d1354837b16f0cf5 (patch) | |
tree | 74d08c72e6360300961bd773f7932834dd619d48 /activerecord/lib/active_record | |
parent | 7a38eae0075b4f38462be267fa80a4ff366fdd00 (diff) | |
download | rails-0af978d33489c3ab54084c26d1354837b16f0cf5.tar.gz rails-0af978d33489c3ab54084c26d1354837b16f0cf5.tar.bz2 rails-0af978d33489c3ab54084c26d1354837b16f0cf5.zip |
call the class method to define the callbacks
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 2 |
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 |