diff options
author | Oriol Gual <oriol.gual@gmail.com> | 2011-06-28 22:31:24 +0200 |
---|---|---|
committer | Oriol Gual <oriol.gual@gmail.com> | 2011-06-28 22:31:24 +0200 |
commit | 56ac32ad51b0c46bc3034b7cf0d7ff58e24bbbd5 (patch) | |
tree | d6a6c21ba31b1818a12fc597706ae77dc41d8a01 | |
parent | 2e0840dd0450b883800d6115a18d8867159c9812 (diff) | |
download | rails-56ac32ad51b0c46bc3034b7cf0d7ff58e24bbbd5.tar.gz rails-56ac32ad51b0c46bc3034b7cf0d7ff58e24bbbd5.tar.bz2 rails-56ac32ad51b0c46bc3034b7cf0d7ff58e24bbbd5.zip |
Fix case
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 01d1ab2de2..ec2e4d4dcd 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -307,8 +307,7 @@ module ActiveRecord order_query.map do |o| case o - when Arel::Nodes::Ascending - when Arel::Nodes::Descending + when Arel::Nodes::Ascending, Arel::Nodes::Descending o.reverse when String, Symbol o.to_s.split(',').collect do |s| |