diff options
Diffstat (limited to 'lib/arel/algebra/relations/operations/project.rb')
-rw-r--r-- | lib/arel/algebra/relations/operations/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/algebra/relations/operations/project.rb b/lib/arel/algebra/relations/operations/project.rb index 223d320e22..a1140e91c1 100644 --- a/lib/arel/algebra/relations/operations/project.rb +++ b/lib/arel/algebra/relations/operations/project.rb @@ -14,7 +14,7 @@ module Arel end def externalizable? - attributes.any?(&:aggregation?) or relation.externalizable? + attributes.any? { |a| a.respond_to?(:aggregation?) && a.aggregation? } || relation.externalizable? end end end |