aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/projection.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-05-13 16:53:36 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-05-13 16:53:36 -0700
commit16730fdbd0ab630320aba225314aa6a1a3b450fe (patch)
treea92ac069bb47e68b3061113c6557ffb72b21071c /lib/arel/relations/projection.rb
parent562a0bf634bd61f61ebb0145d7626fb484e13c53 (diff)
downloadrails-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.rb2
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)