Sha256: e77dc01910f0ee825558781b37a338aced853f6dd75863c5ee268450cbfbc3b2
Contents?: true
Size: 498 Bytes
Versions: 2
Compression:
Stored size: 498 Bytes
Contents
module Doorkeeper class AccessToken < Sequel::Model(:oauth_access_tokens) include DoorkeeperSequel::AccessTokenMixin class << self def active_for(resource_owner) where(resource_owner_id: resource_owner.id, revoked_at: nil) end def order_method :order end def created_at_desc ::Sequel.desc(:created_at) end def refresh_token_revoked_on_use? columns.include?(:previous_refresh_token) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-sequel-2.0.0 | lib/doorkeeper/orm/sequel/access_token.rb |
doorkeeper-sequel-1.5.0 | lib/doorkeeper/orm/sequel/access_token.rb |