Module: Arel::Expression::Transformations
- Included in:
- Arel::Expression
- Defined in:
- lib/arel/algebra/expression.rb
Instance Method Summary collapse
Instance Method Details
#as(aliaz) ⇒ Object
21 22 23 |
# File 'lib/arel/algebra/expression.rb', line 21 def as(aliaz) self.class.new(attribute, aliaz, self) end |
#bind(new_relation) ⇒ Object
25 26 27 |
# File 'lib/arel/algebra/expression.rb', line 25 def bind(new_relation) new_relation == relation ? self : self.class.new(attribute.bind(new_relation), @alias, self) end |