Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

only pass options to the habtm builder

  • Loading branch information...
commit c00173b32590455c7f79ae648e8992e14e810364 1 parent ad7b5ef
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
@@ -1570,7 +1570,7 @@ def has_and_belongs_to_many(name, scope = nil, options = {}, &extension)
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}"
Please sign in to comment.
Something went wrong with that request. Please try again.