diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-12-25 16:46:28 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-12-25 16:46:28 +0200 |
commit | 7fe8d41d88f744b16e6e12c1c07ef3f956994110 (patch) | |
tree | 0efc2685d16b5d49a962d0a232099acdf3e35d70 /app/controllers/oauth/authorized_applications_controller.rb | |
parent | a61ccd4ad2d83b2422561a374c300260e5a6d240 (diff) | |
download | gitlab-ce-7fe8d41d88f744b16e6e12c1c07ef3f956994110.tar.gz |
Improve code style
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/oauth/authorized_applications_controller.rb')
-rw-r--r-- | app/controllers/oauth/authorized_applications_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/oauth/authorized_applications_controller.rb b/app/controllers/oauth/authorized_applications_controller.rb index b6d4a99c0a9..202421b4abd 100644 --- a/app/controllers/oauth/authorized_applications_controller.rb +++ b/app/controllers/oauth/authorized_applications_controller.rb @@ -2,7 +2,7 @@ class Oauth::AuthorizedApplicationsController < Doorkeeper::AuthorizedApplicatio layout "profile" def destroy - Doorkeeper::AccessToken.revoke_all_for params[:id], current_resource_owner + Doorkeeper::AccessToken.revoke_all_for(params[:id], current_resource_owner) redirect_to profile_account_url, notice: I18n.t(:notice, scope: [:doorkeeper, :flash, :authorized_applications, :destroy]) end -end
\ No newline at end of file +end |