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