aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/order_predications.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/order_predications.rb')
-rw-r--r--lib/arel/order_predications.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/arel/order_predications.rb b/lib/arel/order_predications.rb
new file mode 100644
index 0000000000..af163c9454
--- /dev/null
+++ b/lib/arel/order_predications.rb
@@ -0,0 +1,13 @@
+module Arel
+ module OrderPredications
+
+ def asc
+ Nodes::Ordering.new self, :asc
+ end
+
+ def desc
+ Nodes::Ordering.new self, :desc
+ end
+
+ end
+end