From c00173b32590455c7f79ae648e8992e14e810364 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 1 Oct 2013 15:42:28 -0700 Subject: only pass options to the habtm builder --- activerecord/lib/active_record/associations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') 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}" -- cgit v1.2.3