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

no need to to_sym the column name, leave it as-is

上级 8b9f16fc
......@@ -92,7 +92,7 @@ def sum(*args)
# Person.sum("2 * age")
def calculate(operation, column_name, options = {})
if column_name.is_a?(Symbol) && attribute_alias?(column_name)
column_name = attribute_alias(column_name).to_sym
column_name = attribute_alias(column_name)
end
if has_include?(column_name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册