Class: Arel::Descending

Inherits:
Ordering
  • Object
show all
Defined in:
lib/arel/algebra/ordering.rb

Instance Attribute Summary

Attributes inherited from Ordering

#attribute

Instance Method Summary collapse

Methods inherited from Ordering

#bind, #eval, #to_ordering, #to_sql

Instance Method Details

#directionObject



29
# File 'lib/arel/algebra/ordering.rb', line 29

def direction; -1 end

#direction_sqlObject



28
# File 'lib/arel/algebra/ordering.rb', line 28

def direction_sql; 'DESC' end