Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

call the class method to define the callbacks

  • Loading branch information...
commit 0af978d33489c3ab54084c26d1354837b16f0cf5 1 parent 7a38eae
Aaron Patterson tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/associations.rb
2  activerecord/lib/active_record/associations.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.