Skip to content

Commit

Permalink
Attributes may be an Arel value which doesn't respond to aggregation?…
Browse files Browse the repository at this point in the history
…, don't test them.
  • Loading branch information
miloops committed Dec 29, 2009
1 parent bd00a46 commit 818f019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/arel/algebra/relations/operations/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def attributes
end

def externalizable?
attributes.any?(&:aggregation?) or relation.externalizable?
attributes.any? { |a| a.respond_to?(:aggregation?) && a.aggregation? } || relation.externalizable?
end
end
end

0 comments on commit 818f019

Please sign in to comment.