Permalink
Browse files

Amendment to #1272

Allow reverse_order.reverse_order to produce the original order.
  • Loading branch information...
1 parent 9d65604 commit 1a2be42a85b0c1cb4de5dfaf2a6f1d9f4310bb55 @winterchord winterchord committed May 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/query_methods.rb
@@ -159,7 +159,7 @@ def extending(*modules)
def reverse_order
relation = clone
- relation.reverse_order_value = true
+ relation.reverse_order_value = !relation.reverse_order_value
relation
end

0 comments on commit 1a2be42

Please sign in to comment.