提交 770fca10 编写于 作者: E Emilio Tagua

Remove group when building the relation, it will be added later if

options[:group] is given.
上级 796ec652
......@@ -149,7 +149,6 @@ def calculate(operation, column_name, options = {})
arel_table(options[:from]).
join(construct_join(options[:joins], scope)).
where(construct_conditions(options[:conditions], scope)).
group(construct_group(options[:group], options[:having], scope)).
order(options[:order]).
take(options[:limit]).
skip(options[:offset])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册