From 34303cc6176f47c1359a2fca8f50365e601509f0 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 30 Jul 2010 19:05:41 -0700 Subject: removing module for faster method lookup --- lib/arel/algebra/expression.rb | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'lib/arel') diff --git a/lib/arel/algebra/expression.rb b/lib/arel/algebra/expression.rb index 5a93ca9735..f7ba57a757 100644 --- a/lib/arel/algebra/expression.rb +++ b/lib/arel/algebra/expression.rb @@ -20,20 +20,17 @@ module Arel formatter.expression self end - module Transformations - def as(aliaz) - self.class.new(attribute, aliaz, self) - end - - def bind(new_relation) - new_relation == relation ? self : self.class.new(attribute.bind(new_relation), @alias, self) - end - - def to_attribute(relation) - Attribute.new(relation, @alias, :ancestor => self) - end + def as(aliaz) + self.class.new(attribute, aliaz, self) + end + + def bind(new_relation) + new_relation == relation ? self : self.class.new(attribute.bind(new_relation), @alias, self) + end + + def to_attribute(relation) + Attribute.new(relation, @alias, :ancestor => self) end - include Transformations end class Count < Expression -- cgit v1.2.3