summaryrefslogtreecommitdiff
path: root/app/controllers/oauth/authorized_applications_controller.rb
blob: 6d0bf9889e64b9e7e70716330dac0682ed5901f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class Oauth::AuthorizedApplicationsController < Doorkeeper::AuthorizedApplicationsController
  before_filter :set_title

  def destroy
    Doorkeeper::AccessToken.revoke_all_for(params[:id], current_resource_owner)
    redirect_to applications_profile_url, notice: I18n.t(:notice, scope: [:doorkeeper, :flash, :authorized_applications, :destroy])
  end

  private
  
  def set_title
    @title      = "Profile"
    @title_url  = profile_path
    @sidebar    = "profile"
  end
end