Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

get the name from the reflection

  • Loading branch information...
commit 07d522b1bee0cec428c332ac8b7099a737f7ea35 1 parent 32bacb1
@tenderlove tenderlove authored
View
2  activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb
@@ -10,7 +10,7 @@ def valid_options
def define_callbacks(model, reflection)
super
- name = self.name
+ name = reflection.name
model.send(:include, Module.new {
class_eval <<-RUBY, __FILE__, __LINE__ + 1
def destroy_associations
Please sign in to comment.
Something went wrong with that request. Please try again.