aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/utilities
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/relations/utilities')
-rw-r--r--lib/arel/relations/utilities/aggregation.rb8
-rw-r--r--lib/arel/relations/utilities/compound.rb2
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/arel/relations/utilities/aggregation.rb b/lib/arel/relations/utilities/aggregation.rb
index 9f5ead8f86..bdc7650a20 100644
--- a/lib/arel/relations/utilities/aggregation.rb
+++ b/lib/arel/relations/utilities/aggregation.rb
@@ -1,5 +1,5 @@
module Arel
- class Aggregation < Compound
+ class Externalization < Compound
attributes :relation
deriving :initialize, :==
include Recursion::BaseCase
@@ -17,16 +17,16 @@ module Arel
end
def name
- relation.name + '_aggregation'
+ relation.name + '_external'
end
end
class Relation
def externalize
- @externalized ||= aggregation?? Aggregation.new(self) : self
+ @externalized ||= externalizable?? Externalization.new(self) : self
end
- def aggregation?
+ def externalizable?
false
end
end
diff --git a/lib/arel/relations/utilities/compound.rb b/lib/arel/relations/utilities/compound.rb
index 23a55d4b5b..a91cec1127 100644
--- a/lib/arel/relations/utilities/compound.rb
+++ b/lib/arel/relations/utilities/compound.rb
@@ -2,7 +2,7 @@ module Arel
class Compound < Relation
attr_reader :relation
hash_on :relation
- delegate :joins, :join?, :inserts, :taken, :skipped, :name, :aggregation?,
+ delegate :joins, :join?, :inserts, :taken, :skipped, :name, :externalizable?,
:column_for, :engine, :table, :table_sql,
:to => :relation