call the class method to define the callbacks
This commit is contained in:
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user