aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/table.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/relations/table.rb')
-rw-r--r--lib/arel/relations/table.rb14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/arel/relations/table.rb b/lib/arel/relations/table.rb
index 75593731e0..735159508e 100644
--- a/lib/arel/relations/table.rb
+++ b/lib/arel/relations/table.rb
@@ -1,5 +1,7 @@
module Arel
class Table < Relation
+ include Recursion::BaseCase
+
cattr_accessor :engine
attr_reader :name, :engine
@@ -19,18 +21,6 @@ module Arel
self[attribute] and columns.detect { |c| c.name == attribute.name.to_s }
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
-
def ==(other)
self.class == other.class and
name == other.name