1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add maximum to SqlLiteral.

This commit is contained in:
Emilio Tagua 2010-09-11 11:28:00 +08:00 committed by Aaron Patterson
parent 84e8875c55
commit b9402889ff

View file

@ -4,6 +4,10 @@ module Arel
def count distinct = false
Count.new [self], distinct
end
def maximum
Nodes::Max.new [self], Nodes::SqlLiteral.new('max_id')
end
end
end
end