aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/alias.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/relations/alias.rb')
-rw-r--r--lib/arel/relations/alias.rb15
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/arel/relations/alias.rb b/lib/arel/relations/alias.rb
index 0099a794b4..08be02e862 100644
--- a/lib/arel/relations/alias.rb
+++ b/lib/arel/relations/alias.rb
@@ -1,5 +1,7 @@
module Arel
class Alias < Compound
+ include Recursion::BaseCase
+
def initialize(relation)
@relation = relation
end
@@ -7,18 +9,5 @@ module Arel
def ==(other)
equal? other
end
-
- def table
- self
- end
-
- def relation_for(attribute)
- self[attribute] and self
- end
-
- def table_sql(formatter = Sql::TableReference.new(self))
- formatter.table self
- end
-
end
end \ No newline at end of file