diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-13 16:53:36 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-13 16:53:36 -0700 |
commit | 16730fdbd0ab630320aba225314aa6a1a3b450fe (patch) | |
tree | a92ac069bb47e68b3061113c6557ffb72b21071c /lib/arel/relations/projection.rb | |
parent | 562a0bf634bd61f61ebb0145d7626fb484e13c53 (diff) | |
download | rails-16730fdbd0ab630320aba225314aa6a1a3b450fe.tar.gz rails-16730fdbd0ab630320aba225314aa6a1a3b450fe.tar.bz2 rails-16730fdbd0ab630320aba225314aa6a1a3b450fe.zip |
fixed defect in alias
Diffstat (limited to 'lib/arel/relations/projection.rb')
-rw-r--r-- | lib/arel/relations/projection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/relations/projection.rb b/lib/arel/relations/projection.rb index f09d4f894b..8a08cda70c 100644 --- a/lib/arel/relations/projection.rb +++ b/lib/arel/relations/projection.rb @@ -7,7 +7,7 @@ module Arel end def attributes - projections.collect { |p| p.bind(self) } + @attributes ||= projections.collect { |p| p.bind(self) } end def ==(other) |