aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index d68fb33962..c621a49804 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -1570,7 +1570,7 @@ module ActiveRecord
def has_and_belongs_to_many1(name, scope = nil, options = {}, &extension)
# temporarily
- habtm_builder = Builder::HasAndBelongsToMany.create_builder(self, name, scope, options, &extension)
+ habtm_builder = Builder::HasAndBelongsToMany.create_builder(self, name, nil, options)
habtm = habtm_builder.build self
join_class_name = "HABTM_#{name.to_s.camelize}"