Sha256: 6eb6dae076a97ccea0d946ed3fb8f1f55d0e26aa87f1785c17591a0ce0dd73d8
Contents?: true
Size: 683 Bytes
Versions: 6
Compression:
Stored size: 683 Bytes
Contents
module Doorkeeper module AccessGrantMixin extend ActiveSupport::Concern include OAuth::Helpers include Models::Expirable include Models::Revocable include Models::Accessible include Models::Orderable include Models::Scopes module ClassMethods # Searches for Doorkeeper::AccessGrant record with the # specific token value. # # @param token [#to_s] token value (any object that responds to `#to_s`) # # @return [Doorkeeper::AccessGrant, nil] AccessGrant object or nil # if there is no record with such token # def by_token(token) find_by(token: token.to_s) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems