Permalink
Browse files

call the class method to define the callbacks

  • Loading branch information...
1 parent 7a38eae commit 0af978d33489c3ab54084c26d1354837b16f0cf5 @tenderlove tenderlove committed Oct 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations.rb
@@ -1584,7 +1584,7 @@ def has_and_belongs_to_many1(name, scope = nil, options = {}, &extension)
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

0 comments on commit 0af978d

Please sign in to comment.