提交 c13b7c4a 编写于 作者: E Emilio Tagua

Don't shadow outer local variable.

上级 f1778eb4
......@@ -187,8 +187,8 @@ def construct(parent, associations, join_parts, row)
construct(parent, association, join_parts, row)
end
when Hash
associations.sort_by { |k,_| k.to_s }.each do |name, assoc|
association = construct(parent, name, join_parts, row)
associations.sort_by { |k,_| k.to_s }.each do |association_name, assoc|
association = construct(parent, association_name, join_parts, row)
construct(association, assoc, join_parts, row) if association
end
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册