Module: Arel::Attribute::Orderings

Included in:
Arel::Attribute
Defined in:
lib/arel/algebra/attributes/attribute.rb

Instance Method Summary collapse

Instance Method Details

#ascObject Also known as: to_ordering



253
254
255
# File 'lib/arel/algebra/attributes/attribute.rb', line 253

def asc
  Ascending.new(self)
end

#descObject



257
258
259
# File 'lib/arel/algebra/attributes/attribute.rb', line 257

def desc
  Descending.new(self)
end