aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/sql/relations/utilities
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-03-22 16:26:00 -0700
committerCarl Lerche <carllerche@mac.com>2010-03-22 16:26:00 -0700
commit30fb25d3abfc002b85f290587b979d54c35a2e98 (patch)
tree5ea4b427f6abed9d9be1f45ad449b14e35271095 /lib/arel/engines/sql/relations/utilities
parentd0b47c64e2c44ef1cc0e9cfb3dc8681599d4d1f3 (diff)
downloadrails-30fb25d3abfc002b85f290587b979d54c35a2e98.tar.gz
rails-30fb25d3abfc002b85f290587b979d54c35a2e98.tar.bz2
rails-30fb25d3abfc002b85f290587b979d54c35a2e98.zip
Switch Arel::Relation to a module. This will allow for classes with Relation extended on them to represent relations themselves (as opposed to their instances being relations).
Diffstat (limited to 'lib/arel/engines/sql/relations/utilities')
-rw-r--r--lib/arel/engines/sql/relations/utilities/compound.rb2
-rw-r--r--lib/arel/engines/sql/relations/utilities/nil.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/engines/sql/relations/utilities/compound.rb b/lib/arel/engines/sql/relations/utilities/compound.rb
index b8b0e7d269..55853be742 100644
--- a/lib/arel/engines/sql/relations/utilities/compound.rb
+++ b/lib/arel/engines/sql/relations/utilities/compound.rb
@@ -1,5 +1,5 @@
module Arel
- class Compound < Relation
+ class Compound
delegate :table, :table_sql, :to => :relation
def build_query(*parts)
diff --git a/lib/arel/engines/sql/relations/utilities/nil.rb b/lib/arel/engines/sql/relations/utilities/nil.rb
index 519ea8acf1..0f7ca5d757 100644
--- a/lib/arel/engines/sql/relations/utilities/nil.rb
+++ b/lib/arel/engines/sql/relations/utilities/nil.rb
@@ -1,5 +1,5 @@
module Arel
- class Nil < Relation
+ class Nil
def table_sql(formatter = nil); '' end
def name; '' end
end