mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 05:05:55 +08:00
18 lines
289 B
Ruby
18 lines
289 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Doorkeeper
|
||
|
class AccessTokensController < ApplicationController
|
||
|
before_action :find_token
|
||
|
|
||
|
def revoke
|
||
|
@token.revoke
|
||
|
end
|
||
|
|
||
|
private
|
||
|
|
||
|
def find_token
|
||
|
@token = current_user.access_tokens.find(params[:id])
|
||
|
end
|
||
|
end
|
||
|
end
|