aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/predications.rb
diff options
context:
space:
mode:
authorArthur Taylor <arthur@aupeo.com>2011-04-28 10:11:50 +0200
committerArthur Taylor <arthur@aupeo.com>2011-04-28 10:11:50 +0200
commit85882d1b26b033afb2643865afe6410673949d32 (patch)
tree0d98d8d0711564635ebf0b61964685267c63d3f5 /lib/arel/predications.rb
parent8a8d396cae40f272eb8c76df2e743d53fc9a8c0b (diff)
downloadrails-85882d1b26b033afb2643865afe6410673949d32.tar.gz
rails-85882d1b26b033afb2643865afe6410673949d32.tar.bz2
rails-85882d1b26b033afb2643865afe6410673949d32.zip
Add support for ordering on expressions
Conflicts: lib/arel.rb lib/arel/attributes/attribute.rb lib/arel/nodes/infix_operation.rb lib/arel/nodes/named_function.rb Conflicts: lib/arel.rb lib/arel/attributes/attribute.rb
Diffstat (limited to 'lib/arel/predications.rb')
-rw-r--r--lib/arel/predications.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/arel/predications.rb b/lib/arel/predications.rb
index 7e2425e45f..08cbf16d9d 100644
--- a/lib/arel/predications.rb
+++ b/lib/arel/predications.rb
@@ -1,5 +1,6 @@
module Arel
module Predications
+
def as other
Nodes::As.new self, Nodes::SqlLiteral.new(other)
end
@@ -152,14 +153,6 @@ module Arel
grouping_all :lteq, others
end
- def asc
- Nodes::Ordering.new self, :asc
- end
-
- def desc
- Nodes::Ordering.new self, :desc
- end
-
private
def grouping_any method_id, others