aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/nodes/sql_literal.rb
blob: d25a8521b77784014948fc623b9c63370a6f2a0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Arel # :nodoc: all
  module Nodes
    class SqlLiteral < String
      include Arel::Expressions
      include Arel::Predications
      include Arel::AliasPredication
      include Arel::OrderPredications

      def encode_with(coder)
        coder.scalar = self.to_s
      end
    end
  end
end