diff options
Diffstat (limited to 'lib/arel/relations/aggregation.rb')
-rw-r--r-- | lib/arel/relations/aggregation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/relations/aggregation.rb b/lib/arel/relations/aggregation.rb index 7a56834125..955a71c0b0 100644 --- a/lib/arel/relations/aggregation.rb +++ b/lib/arel/relations/aggregation.rb @@ -16,6 +16,6 @@ Aggregation = Struct.new(:relation) do end def attributes - relation.attributes.collect(&:to_attribute) + @attributes ||= relation.attributes.collect(&:to_attribute) end end
\ No newline at end of file |