2014-12-19 09:15:29 -05:00
|
|
|
class Oauth::AuthorizedApplicationsController < Doorkeeper::AuthorizedApplicationsController
|
|
|
|
layout "profile"
|
|
|
|
|
|
|
|
def destroy
|
2014-12-25 09:46:28 -05:00
|
|
|
Doorkeeper::AccessToken.revoke_all_for(params[:id], current_resource_owner)
|
2014-12-25 11:35:04 -05:00
|
|
|
redirect_to applications_profile_url, notice: I18n.t(:notice, scope: [:doorkeeper, :flash, :authorized_applications, :destroy])
|
2014-12-19 09:15:29 -05:00
|
|
|
end
|
2014-12-25 09:46:28 -05:00
|
|
|
end
|