123456789_123456789_123456789_123456789_123456789_

Module: Arel::AliasPredication

Do not use. This module is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: activerecord/lib/arel/alias_predication.rb

Instance Method Summary

Instance Method Details

#as(other)

[ GitHub ]

  
# File 'activerecord/lib/arel/alias_predication.rb', line 5

def as(other)
  other = other.name if other.is_a?(Symbol)

  Nodes::As.new self, Nodes::SqlLiteral.new(other, retryable: true)
end