提交 c00173b3 编写于 作者: A Aaron Patterson

only pass options to the habtm builder

上级 ad7b5efb
......@@ -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}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册