提交 0cf45c85 编写于 作者: A Aaron Patterson

avoid a proc object

上级 fe8a3070
......@@ -1841,7 +1841,7 @@ def initialize(base, associations, joins)
@reflections = []
@base_records_hash = {}
@base_records_in_order = []
@table_aliases = Hash.new { |aliases, table| aliases[table] = 0 }
@table_aliases = Hash.new(0)
@table_aliases[base.table_name] = 1
build(associations)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册