diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-28 15:16:07 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-28 15:16:07 -0700 |
commit | c93f75619441cc394ce193b8af9823a5d3acf0d4 (patch) | |
tree | d1cd5757052527552a45925ca5b9394561776a37 /lib/arel/algebra/relations/operations/project.rb | |
parent | 1dbbc1b9871bd65d6ba149152b5deb23a53b67f8 (diff) | |
download | rails-c93f75619441cc394ce193b8af9823a5d3acf0d4.tar.gz rails-c93f75619441cc394ce193b8af9823a5d3acf0d4.tar.bz2 rails-c93f75619441cc394ce193b8af9823a5d3acf0d4.zip |
initializing variables, removing ==
Diffstat (limited to 'lib/arel/algebra/relations/operations/project.rb')
-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 |