Module: Doorkeeper::AccessGrantMixin::ClassMethods

Defined in:
lib/doorkeeper/models/access_grant_mixin.rb

Instance Method Summary collapse

Instance Method Details

#by_token(token) ⇒ Object


25
26
27
# File 'lib/doorkeeper/models/access_grant_mixin.rb', line 25

def by_token(token)
  where(token: token).limit(1).to_a.first
end