Module: Doorkeeper::Models::Orderable::ClassMethods

Defined in:
lib/doorkeeper/models/concerns/orderable.rb

Instance Method Summary collapse

Instance Method Details

#ordered_by(attribute, direction = :asc) ⇒ Object


9
10
11
# File 'lib/doorkeeper/models/concerns/orderable.rb', line 9

def ordered_by(attribute, direction = :asc)
  order(attribute => direction)
end