diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-21 00:23:32 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-21 00:23:32 -0700 |
commit | 191b2b7b7e6e2cf4fc5a24321bc9b1e593f96551 (patch) | |
tree | 926f27080e6bc10f49d55ad209b4b8b665818d90 /lib/arel/relations/operations/project.rb | |
parent | 41f80e494af3ce7c8f3d6aa34f8303524a48373b (diff) | |
download | rails-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.rb | 2 |
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 |