diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-26 14:30:51 -0700 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 14:50:30 -0400 |
commit | 437429764510338bdc5f4915286425f07565a573 (patch) | |
tree | e86d754b82aa284701fdbbed360305d6487a5170 /lib | |
parent | 3a6e8e5a3f99841691b70b89b0a10f836e6ec071 (diff) | |
download | rails-437429764510338bdc5f4915286425f07565a573.tar.gz rails-437429764510338bdc5f4915286425f07565a573.tar.bz2 rails-437429764510338bdc5f4915286425f07565a573.zip |
moved table-related stuff into sql engine
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/algebra/relations/utilities/compound.rb | 2 | ||||
-rw-r--r-- | lib/arel/engines/sql/relations.rb | 1 | ||||
-rw-r--r-- | lib/arel/engines/sql/relations/utilities/compound.rb | 6 |
3 files changed, 8 insertions, 1 deletions
diff --git a/lib/arel/algebra/relations/utilities/compound.rb b/lib/arel/algebra/relations/utilities/compound.rb index fbff36a868..4d7cece812 100644 --- a/lib/arel/algebra/relations/utilities/compound.rb +++ b/lib/arel/algebra/relations/utilities/compound.rb @@ -3,7 +3,7 @@ module Arel attr_reader :relation hash_on :relation delegate :joins, :join?, :inserts, :taken, :skipped, :name, :externalizable?, - :column_for, :engine, :table, :table_sql, :array, + :column_for, :engine, :to => :relation [:attributes, :wheres, :groupings, :orders].each do |operation_name| diff --git a/lib/arel/engines/sql/relations.rb b/lib/arel/engines/sql/relations.rb index d6e4d295ba..0eb1303ec9 100644 --- a/lib/arel/engines/sql/relations.rb +++ b/lib/arel/engines/sql/relations.rb @@ -1,3 +1,4 @@ +require 'arel/engines/sql/relations/utilities/compound' require 'arel/engines/sql/relations/utilities/recursion' require 'arel/engines/sql/relations/utilities/externalization' require 'arel/engines/sql/relations/utilities/nil' diff --git a/lib/arel/engines/sql/relations/utilities/compound.rb b/lib/arel/engines/sql/relations/utilities/compound.rb new file mode 100644 index 0000000000..502bf8b01e --- /dev/null +++ b/lib/arel/engines/sql/relations/utilities/compound.rb @@ -0,0 +1,6 @@ +module Arel + class Compound < Relation + delegate :table, :table_sql, :array, :to => :relation + end +end +
\ No newline at end of file |