diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-08-11 08:43:21 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-08-11 21:47:30 +0100 |
commit | 88c91f7cdbe904c0a215a05be76ae120eacb24fb (patch) | |
tree | ec4567e3c5ee28cadf93319fd3e04daf9b18fcbb /lib/arel | |
parent | 160917526a8d038d4fbb4d90635e26a9df8d8871 (diff) | |
download | rails-88c91f7cdbe904c0a215a05be76ae120eacb24fb.tar.gz rails-88c91f7cdbe904c0a215a05be76ae120eacb24fb.tar.bz2 rails-88c91f7cdbe904c0a215a05be76ae120eacb24fb.zip |
Add SelectManager#projections= method to overwrite projections
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/select_manager.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index dc80150957..cff3236a33 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -135,6 +135,10 @@ module Arel self end + def projections= projections + @ctx.projections = projections + end + def order *expr # FIXME: We SHOULD NOT be converting these to SqlLiteral automatically @ast.orders.concat expr.map { |x| |