Sha256: d89886465d64d64ec9b82f54f24315c28b671bbb222da28ee3a137c10e37c177

Contents?: true

Size: 515 Bytes

Versions: 14

Compression:

Stored size: 515 Bytes

Contents

module Doorkeeper
  class AccessToken < ActiveRecord::Base
    include AccessTokenMixin

    self.table_name = "#{table_name_prefix}oauth_access_tokens#{table_name_suffix}".to_sym

    def self.delete_all_for(application_id, resource_owner)
      where(application_id: application_id,
            resource_owner_id: resource_owner.id).delete_all
    end
    private_class_method :delete_all_for

    def self.order_method
      :order
    end

    def self.created_at_desc
      'created_at desc'
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
doorkeeper-2.2.2 lib/doorkeeper/orm/active_record/access_token.rb
doorkeeper-3.0.0 lib/doorkeeper/orm/active_record/access_token.rb
doorkeeper-3.0.0.rc2 lib/doorkeeper/orm/active_record/access_token.rb
doorkeeper-3.0.0.rc1 lib/doorkeeper/orm/active_record/access_token.rb
doorkeeper-2.2.1 lib/doorkeeper/orm/active_record/access_token.rb
doorkeeper-2.2.0 lib/doorkeeper/orm/active_record/access_token.rb
doorkeeper-2.1.4 lib/doorkeeper/orm/active_record/access_token.rb
doorkeeper-2.1.3 lib/doorkeeper/orm/active_record/access_token.rb
doorkeeper-2.1.2 lib/doorkeeper/orm/active_record/access_token.rb
doorkeeper-2.1.1 lib/doorkeeper/orm/active_record/access_token.rb
doorkeeper-2.1.0 lib/doorkeeper/orm/active_record/access_token.rb
doorkeeper-2.0.1 lib/doorkeeper/orm/active_record/access_token.rb
doorkeeper-2.0.0 lib/doorkeeper/orm/active_record/access_token.rb
doorkeeper-2.0.0.rc3 lib/doorkeeper/orm/active_record/access_token.rb