Module: Arel::AliasPredication

Included in:
Arel::Attributes::Attribute, Nodes::Filter, Nodes::InfixOperation, Nodes::NodeExpression, Nodes::Over, Nodes::SqlLiteral, Table
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/arel/alias_predication.rb

Instance Method Summary collapse

Instance Method Details

#as(other) ⇒ Object



5
6
7
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/arel/alias_predication.rb', line 5

def as(other)
  Nodes::As.new self, Nodes::SqlLiteral.new(other)
end