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.5.0.rc2 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.1.2 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.5.0.rc1 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.4.0 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.2.6 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.3.3 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.0.3 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.1.1 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.4.0.rc2 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.2.5 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.3.2 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.4.0.rc1 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.2.4 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.3.1 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.3.0 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.2.3 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.2.2 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.2.1 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.2.0 lib/doorkeeper/models/concerns/orderable.rb
doorkeeper-5.2.0.rc3 lib/doorkeeper/models/concerns/orderable.rb