aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/operations/project.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-05-21 00:23:32 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-05-21 00:23:32 -0700
commit191b2b7b7e6e2cf4fc5a24321bc9b1e593f96551 (patch)
tree926f27080e6bc10f49d55ad209b4b8b665818d90 /lib/arel/relations/operations/project.rb
parent41f80e494af3ce7c8f3d6aa34f8303524a48373b (diff)
downloadrails-191b2b7b7e6e2cf4fc5a24321bc9b1e593f96551.tar.gz
rails-191b2b7b7e6e2cf4fc5a24321bc9b1e593f96551.tar.bz2
rails-191b2b7b7e6e2cf4fc5a24321bc9b1e593f96551.zip
externalization now includes limits
Diffstat (limited to 'lib/arel/relations/operations/project.rb')
-rw-r--r--lib/arel/relations/operations/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/relations/operations/project.rb b/lib/arel/relations/operations/project.rb
index c92a9df5a5..d7835edda4 100644
--- a/lib/arel/relations/operations/project.rb
+++ b/lib/arel/relations/operations/project.rb
@@ -5,7 +5,7 @@ module Arel
def initialize(relation, *projections, &block)
@relation = relation
- @projections = (projections + (block_given?? [yield(self)] : [])).collect { |p| p.bind(relation) }
+ @projections = (projections + (block_given?? [yield(relation)] : [])).collect { |p| p.bind(relation) }
end
def attributes