From ccbf1e4b7cb29780b9411ecb2bee97be004ae8dc Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 28 Jul 2010 17:00:47 -0700 Subject: call map to make perftools reports more nice --- lib/arel/algebra/relations/operations/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/arel') diff --git a/lib/arel/algebra/relations/operations/project.rb b/lib/arel/algebra/relations/operations/project.rb index 17431c9a82..0590b8dd88 100644 --- a/lib/arel/algebra/relations/operations/project.rb +++ b/lib/arel/algebra/relations/operations/project.rb @@ -4,7 +4,7 @@ module Arel def initialize(relation, *projections) super(relation) - @projections = projections.collect { |p| p.bind(relation) } + @projections = projections.map { |p| p.bind(relation) } @attributes = Header.new(projections.map { |x| x.bind(self) }) end -- cgit v1.2.3