diff options
-rw-r--r-- | lib/arel/algebra/relations/operations/project.rb | 5 |
1 files changed, 2 insertions, 3 deletions
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 |