Skip to content

Commit

Permalink
Amendment to #1272
Browse files Browse the repository at this point in the history
Allow reverse_order.reverse_order to produce the original order.
  • Loading branch information
counterleft committed May 28, 2011
1 parent 9d65604 commit 1a2be42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/relation/query_methods.rb
Expand Up @@ -159,7 +159,7 @@ def extending(*modules)


def reverse_order def reverse_order
relation = clone relation = clone
relation.reverse_order_value = true relation.reverse_order_value = !relation.reverse_order_value
relation relation
end end


Expand Down

0 comments on commit 1a2be42

Please sign in to comment.