Sha256: 2a3ac236dc4b57f17b922f16a6917a7ff43f2e49055ab44c2824240a0724beee

Contents?: true

Size: 250 Bytes

Versions: 9

Compression:

Stored size: 250 Bytes

Contents

module Doorkeeper
  module Models
    module Orderable
      extend ActiveSupport::Concern

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
doorkeeper-4.4.3 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.0.0 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-4.4.2 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-4.4.1 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.0.0.rc2 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-4.4.0 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.0.0.rc1 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-4.3.2 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-4.3.1 lib/doorkeeper/models/concerns/orderable.rb