aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/operations/order.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/relations/operations/order.rb')
-rw-r--r--lib/arel/relations/operations/order.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/arel/relations/operations/order.rb b/lib/arel/relations/operations/order.rb
deleted file mode 100644
index 05af3fde4d..0000000000
--- a/lib/arel/relations/operations/order.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-module Arel
- class Order < Compound
- attributes :relation, :orderings
- deriving :==
-
- def initialize(relation, *orderings, &block)
- @relation = relation
- @orderings = (orderings + (block_given?? [yield(relation)] : [])).collect { |o| o.bind(relation) }
- end
-
- # TESTME
- def orders
- (orderings + relation.orders).collect { |o| o.bind(self) }
- end
- end
-end \ No newline at end of file