diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-04 17:37:01 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-04 17:37:01 -0700 |
commit | 1b62990cfa10feea7f3937bbcd2145adae84db85 (patch) | |
tree | ed3c8a51ea181c379113e1210b15f2506771af8a /lib | |
parent | 4fcd1622ba6f9a2a44301bffcb7f5aee0d5db605 (diff) | |
download | rails-1b62990cfa10feea7f3937bbcd2145adae84db85.tar.gz rails-1b62990cfa10feea7f3937bbcd2145adae84db85.tar.bz2 rails-1b62990cfa10feea7f3937bbcd2145adae84db85.zip |
unfactoring to use concrete delegate methods
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/algebra/relations/utilities/compound.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/arel/algebra/relations/utilities/compound.rb b/lib/arel/algebra/relations/utilities/compound.rb index 58c9c7422e..0a270f78a1 100644 --- a/lib/arel/algebra/relations/utilities/compound.rb +++ b/lib/arel/algebra/relations/utilities/compound.rb @@ -3,9 +3,6 @@ module Arel include Relation attr_reader :relation, :engine - delegate :joins, :join?, :inserts, :taken, :skipped, :name, :externalizable?, - :column_for, :locked, :table_alias, :array, - :to => :relation def initialize relation @relation = relation @@ -18,6 +15,15 @@ module Arel @projections = nil end + def join?; @relation.join? end + def name; @relation.name end + def table_alias; @relation.table_alias end + def skipped; @relation.skipped end + def taken; @relation.taken end + def joins env; @relation.joins env end + def column_for attr; @relation.column_for attr end + def externalizable?; @relation.externalizable? end + def sources @relation.sources end |