diff options
Diffstat (limited to 'lib/arel/algebra/relations/operations/project.rb')
-rw-r--r-- | lib/arel/algebra/relations/operations/project.rb | 2 |
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 0590b8dd88..649ec19713 100644 --- a/lib/arel/algebra/relations/operations/project.rb +++ b/lib/arel/algebra/relations/operations/project.rb @@ -2,7 +2,7 @@ module Arel class Project < Compound attr_reader :projections, :attributes - def initialize(relation, *projections) + def initialize(relation, projections) super(relation) @projections = projections.map { |p| p.bind(relation) } @attributes = Header.new(projections.map { |x| x.bind(self) }) |