1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/lib/arel/nodes/sql_literal.rb
2010-09-11 13:18:20 +08:00

13 lines
245 B
Ruby

module Arel
module Nodes
class SqlLiteral < String
def count distinct = false
Count.new [self], distinct
end
def maximum
Nodes::Max.new [self], Nodes::SqlLiteral.new('max_id')
end
end
end
end