diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-10-30 12:40:41 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-10-30 12:40:41 -0600 |
commit | 9b92af7098b2728ced578ab9a7679176d20f120f (patch) | |
tree | c17af0e6808c757a624341644f2cb265a29e29cb /lib/arel | |
parent | 7db0e4accff919f0a7aea875fbc8d9f5696ecb69 (diff) | |
download | rails-9b92af7098b2728ced578ab9a7679176d20f120f.tar.gz rails-9b92af7098b2728ced578ab9a7679176d20f120f.tar.bz2 rails-9b92af7098b2728ced578ab9a7679176d20f120f.zip |
Revert "Merge pull request #300 from jpcody/master"
This reverts commit 36836fa5e7c084c0dce2818577e6fd0cf815f786, reversing
changes made to 53bc8426648cc93695525e8f12102cd416b2d772.
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/expressions.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/arel/expressions.rb b/lib/arel/expressions.rb index d40268c292..fa18f15b67 100644 --- a/lib/arel/expressions.rb +++ b/lib/arel/expressions.rb @@ -5,24 +5,23 @@ module Arel end def sum - Nodes::Sum.new [self] + Nodes::Sum.new [self], Nodes::SqlLiteral.new('sum_id') end def maximum - Nodes::Max.new [self] + Nodes::Max.new [self], Nodes::SqlLiteral.new('max_id') end def minimum - Nodes::Min.new [self] + Nodes::Min.new [self], Nodes::SqlLiteral.new('min_id') end def average - Nodes::Avg.new [self] + Nodes::Avg.new [self], Nodes::SqlLiteral.new('avg_id') end def extract field Nodes::Extract.new [self], field end - end end |