diff options
author | James Lopez <james@jameslopez.es> | 2017-10-31 09:02:57 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-10-31 09:03:59 +0100 |
commit | 232bdd47d9af004b09cfde68d866d3e694572774 (patch) | |
tree | b4ea227a265c6515ea6db29e08c480ed95bfcf3b /app/controllers/oauth | |
parent | 82c758c0a85433ca05442ed440f823e17e82573b (diff) | |
download | gitlab-ce-232bdd47d9af004b09cfde68d866d3e694572774.tar.gz |
refactor code
Diffstat (limited to 'app/controllers/oauth')
-rw-r--r-- | app/controllers/oauth/applications_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/oauth/applications_controller.rb b/app/controllers/oauth/applications_controller.rb index 4dbd61bfeae..2443f529c7b 100644 --- a/app/controllers/oauth/applications_controller.rb +++ b/app/controllers/oauth/applications_controller.rb @@ -16,7 +16,7 @@ class Oauth::ApplicationsController < Doorkeeper::ApplicationsController end def create - @application = Applications::CreateService.new(current_user, create_application_params).execute + @application = Applications::CreateService.new(current_user, create_application_params).execute(request) if @application.persisted? flash[:notice] = I18n.t(:notice, scope: [:doorkeeper, :flash, :applications, :create]) @@ -58,7 +58,6 @@ class Oauth::ApplicationsController < Doorkeeper::ApplicationsController def create_application_params application_params.tap do |params| params[:owner] = current_user - params[:ip_address] = request.remote_ip end end end |