aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/order_predications.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-06-21 07:49:30 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-06-21 07:49:30 -0700
commit645afa0c08af21381b63831e8f488a186a6ad9b0 (patch)
tree8caaa5ad9018fe61c838907cd0854a68a55f91cd /lib/arel/order_predications.rb
parent593002080cbcbb6e14acf3bc909aab819811f215 (diff)
parentba3578a22f824da3478b6dceb100deb9f41a56e9 (diff)
downloadrails-645afa0c08af21381b63831e8f488a186a6ad9b0.tar.gz
rails-645afa0c08af21381b63831e8f488a186a6ad9b0.tar.bz2
rails-645afa0c08af21381b63831e8f488a186a6ad9b0.zip
Merge pull request #64 from ernie/reverse_ordering
Allow reversal of orderings
Diffstat (limited to 'lib/arel/order_predications.rb')
-rw-r--r--lib/arel/order_predications.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/order_predications.rb b/lib/arel/order_predications.rb
index af163c9454..153fcffb41 100644
--- a/lib/arel/order_predications.rb
+++ b/lib/arel/order_predications.rb
@@ -2,11 +2,11 @@ module Arel
module OrderPredications
def asc
- Nodes::Ordering.new self, :asc
+ Nodes::Ascending.new self
end
def desc
- Nodes::Ordering.new self, :desc
+ Nodes::Descending.new self
end
end