Sha256: 4d2f966de5ea83eec6623ca64eb5283eaac90074c65d7df0f069216de5243c80

Contents?: true

Size: 281 Bytes

Versions: 47

Compression:

Stored size: 281 Bytes

Contents

# frozen_string_literal: true

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

47 entries across 47 versions & 1 rubygems

Version Path
doorkeeper-5.8.0 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.7.1 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.7.0 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.6.9 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.6.8 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.6.7 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.6.6 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.6.5 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.6.4 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.6.3 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.6.2 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.6.1 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.6.0 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.6.0.rc2 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.6.0.rc1 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.5.4 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.5.3 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.5.2 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.5.1 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.5.0 lib/doorkeeper/models/concerns/orderable.rb