diff options
author | Paul Sadauskas <psadauskas@gmail.com> | 2011-01-25 11:27:42 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-02 14:55:55 -0800 |
commit | b4ca49dd9f2ea15fe34dd5f01215afad834f2f40 (patch) | |
tree | a89acfd8e23a1654eea4c2f50428aa64d513f294 /lib/arel | |
parent | 7b445c6dd578277f7313746fc497429a56e4b43c (diff) | |
download | rails-b4ca49dd9f2ea15fe34dd5f01215afad834f2f40.tar.gz rails-b4ca49dd9f2ea15fe34dd5f01215afad834f2f40.tar.bz2 rails-b4ca49dd9f2ea15fe34dd5f01215afad834f2f40.zip |
Make #with chainable
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/select_manager.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index 0fa344945e..2747bdfda8 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -161,6 +161,8 @@ module Arel node_class = Nodes::With end @ast.with = node_class.new(subqueries.flatten) + + self end def take limit |