2017-02-13 13:58:58 -05:00
|
|
|
# frozen_string_literal: true
|
2018-02-24 01:45:50 -05:00
|
|
|
|
2018-02-24 02:41:47 -05:00
|
|
|
module Arel # :nodoc: all
|
2010-08-12 18:26:04 -04:00
|
|
|
module Nodes
|
2010-08-13 11:11:08 -04:00
|
|
|
class SqlLiteral < String
|
2010-09-14 18:20:24 -04:00
|
|
|
include Arel::Expressions
|
2010-10-27 09:43:20 -04:00
|
|
|
include Arel::Predications
|
2011-04-29 13:36:22 -04:00
|
|
|
include Arel::AliasPredication
|
2011-04-28 04:11:50 -04:00
|
|
|
include Arel::OrderPredications
|
2013-11-08 22:16:19 -05:00
|
|
|
|
|
|
|
def encode_with(coder)
|
|
|
|
coder.scalar = self.to_s
|
|
|
|
end
|
2020-03-10 13:20:32 -04:00
|
|
|
|
|
|
|
def fetch_attribute
|
|
|
|
end
|
2010-08-12 18:26:04 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|