From a46922e4a1089c9880c30b389e1e1d9dfbab02ae Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Fri, 2 Apr 2010 19:04:23 -0700 Subject: Create an Arel::Header class representing a relation's attributes --- lib/arel/algebra/relations/operations/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/arel/algebra/relations/operations/project.rb') diff --git a/lib/arel/algebra/relations/operations/project.rb b/lib/arel/algebra/relations/operations/project.rb index a1140e91c1..49d0e1be36 100644 --- a/lib/arel/algebra/relations/operations/project.rb +++ b/lib/arel/algebra/relations/operations/project.rb @@ -10,7 +10,7 @@ module Arel end def attributes - @attributes ||= projections.collect { |p| p.bind(self) } + @attributes ||= Header.new(projections).bind(self) end def externalizable? -- cgit v1.2.3