diff options
Diffstat (limited to 'lib/arel/algebra/relations')
-rw-r--r-- | lib/arel/algebra/relations/operations/project.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/arel/algebra/relations/operations/project.rb b/lib/arel/algebra/relations/operations/project.rb index 8136f7ce9b..b78d5d3e97 100644 --- a/lib/arel/algebra/relations/operations/project.rb +++ b/lib/arel/algebra/relations/operations/project.rb @@ -5,6 +5,7 @@ module Arel def initialize(relation, *projections) super(relation) @projections = projections.collect { |p| p.bind(relation) } + @attributes = nil end def attributes @@ -15,13 +16,6 @@ module Arel attributes.any? { |a| a.respond_to?(:aggregation?) && a.aggregation? } || relation.externalizable? end - def == other - super || - Project === other && - relation == other.relation && - projections == other.projections - end - def eval unoperated_rows.collect { |r| r.slice(*projections) } end |