diff options
Diffstat (limited to 'lib/arel/algebra')
-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 |