aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-28 17:00:47 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-28 17:00:47 -0700
commitccbf1e4b7cb29780b9411ecb2bee97be004ae8dc (patch)
tree680c4d41a89d70718f9e2b86386ddce534760f60 /lib/arel
parent3878a115a3d53eb817c0fbab3e5ca7ec1427f0be (diff)
downloadrails-ccbf1e4b7cb29780b9411ecb2bee97be004ae8dc.tar.gz
rails-ccbf1e4b7cb29780b9411ecb2bee97be004ae8dc.tar.bz2
rails-ccbf1e4b7cb29780b9411ecb2bee97be004ae8dc.zip
call map to make perftools reports more nice
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/algebra/relations/operations/project.rb2
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 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