From b2ee120f56fa7e0205b2d3fc602b6ad68a438ac9 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 27 Jul 2010 18:01:59 -0700 Subject: PERF: never called with a block, so no need to test --- lib/arel/algebra/relations/operations/project.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/arel') diff --git a/lib/arel/algebra/relations/operations/project.rb b/lib/arel/algebra/relations/operations/project.rb index daca742039..8136f7ce9b 100644 --- a/lib/arel/algebra/relations/operations/project.rb +++ b/lib/arel/algebra/relations/operations/project.rb @@ -2,10 +2,9 @@ module Arel class Project < Compound attr_reader :projections - def initialize(relation, *projections, &block) + def initialize(relation, *projections) super(relation) - @projections = (projections + arguments_from_block(relation, &block)) \ - .collect { |p| p.bind(relation) } + @projections = projections.collect { |p| p.bind(relation) } end def attributes -- cgit v1.2.3