diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-10 10:45:05 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-10 10:45:05 -0700 |
commit | e7648f26921d66f1375645808a5266d8e0e3edcf (patch) | |
tree | e59e0b8164482b208ec539c8ffa1df68846aeaa4 /lib/arel | |
parent | 5eaf76df2d442840926eb82d1d2265c2db2aef3f (diff) | |
download | rails-e7648f26921d66f1375645808a5266d8e0e3edcf.tar.gz rails-e7648f26921d66f1375645808a5266d8e0e3edcf.tar.bz2 rails-e7648f26921d66f1375645808a5266d8e0e3edcf.zip |
adding "orders" method
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 ce749c4977..6942014208 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -89,6 +89,10 @@ module Arel self end + def orders + @head.orders + end + def wheres Compatibility::Wheres.new @engine, @ctx.wheres end |