method

build_quoted

v8.1.1 - Show latest stable - Class: Arel::Nodes
build_quoted(other, attribute = nil)
public

No documentation available.

# File activerecord/lib/arel/nodes/casted.rb, line 48
    def self.build_quoted(other, attribute = nil)
      case other
      when Arel::Nodes::Node, Arel::Attributes::Attribute, Arel::Table, Arel::SelectManager, Arel::Nodes::SqlLiteral, ActiveModel::Attribute
        other
      else
        case attribute
        when Arel::Attributes::Attribute
          Casted.new other, attribute
        else
          Quoted.new other
        end
      end
    end