Module: Arel::Nodes
Do not use. This module is for internal use only.
Constant Summary
Class Method Summary
Class Method Details
.build_quoted(other, attribute = nil)
[ GitHub ]# 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