module Doorkeeper::AccessGrantMixin::ClassMethods

def by_token(token)

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