call the class method to define the callbacks

This commit is contained in:
Aaron Patterson 2013-10-02 15:31:26 -07:00
parent 7a38eae007
commit 0af978d334

@ -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