diff options
author | Brian Mathiyakom <brian@rarevisions.net> | 2011-05-27 13:59:18 -0700 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-06-01 18:29:29 +0100 |
commit | 1e43bd9f3520364ba2ebc99bde047334c34cb361 (patch) | |
tree | 02049c1ba7c81bf8741827b88e99d857297e3dc9 /activerecord/lib/active_record/relation.rb | |
parent | fba977dfa359f23b88908462869eb1c2bee6b78c (diff) | |
download | rails-1e43bd9f3520364ba2ebc99bde047334c34cb361.tar.gz rails-1e43bd9f3520364ba2ebc99bde047334c34cb361.tar.bz2 rails-1e43bd9f3520364ba2ebc99bde047334c34cb361.zip |
Fix issue #1272
Set reverse_order_value when asked to reverse_order().
Do the actual reversal in build_arel.
Diffstat (limited to 'activerecord/lib/active_record/relation.rb')
-rw-r--r-- | activerecord/lib/active_record/relation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb index e852f50d86..317af8a15d 100644 --- a/activerecord/lib/active_record/relation.rb +++ b/activerecord/lib/active_record/relation.rb @@ -6,7 +6,7 @@ module ActiveRecord JoinOperation = Struct.new(:relation, :join_class, :on) ASSOCIATION_METHODS = [:includes, :eager_load, :preload] MULTI_VALUE_METHODS = [:select, :group, :order, :joins, :where, :having, :bind] - SINGLE_VALUE_METHODS = [:limit, :offset, :lock, :readonly, :create_with, :from, :reorder] + SINGLE_VALUE_METHODS = [:limit, :offset, :lock, :readonly, :create_with, :from, :reorder, :reverse_order] include FinderMethods, Calculations, SpawnMethods, QueryMethods, Batches |