Module: Arel::OrderPredications

Included in:
Attributes::Attribute, Nodes::InfixOperation, Nodes::NodeExpression, Nodes::SqlLiteral
Defined in:
activerecord/lib/arel/order_predications.rb

Instance Method Summary collapse

Instance Method Details

#ascObject



5
6
7
# File 'activerecord/lib/arel/order_predications.rb', line 5

def asc
  Nodes::Ascending.new self
end

#descObject



9
10
11
# File 'activerecord/lib/arel/order_predications.rb', line 9

def desc
  Nodes::Descending.new self
end