summaryrefslogtreecommitdiff
path: root/app/controllers/oauth/authorized_applications_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-25 16:46:28 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-25 16:46:28 +0200
commit7fe8d41d88f744b16e6e12c1c07ef3f956994110 (patch)
tree0efc2685d16b5d49a962d0a232099acdf3e35d70 /app/controllers/oauth/authorized_applications_controller.rb
parenta61ccd4ad2d83b2422561a374c300260e5a6d240 (diff)
downloadgitlab-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.rb4
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