1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/arel/nodes/sql_literal.rb

17 lines
319 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2018-02-24 01:45:50 -05:00
2010-08-12 18:26:04 -04:00
module Arel
module Nodes
2010-08-13 11:11:08 -04:00
class SqlLiteral < String
2010-09-14 18:20:24 -04:00
include Arel::Expressions
include Arel::Predications
include Arel::AliasPredication
include Arel::OrderPredications
def encode_with(coder)
coder.scalar = self.to_s
end
2010-08-12 18:26:04 -04:00
end
end
end