Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarka Kadlecova <jarka@gitlab.com>2017-06-02 14:44:04 +0300
committerJarka Kadlecova <jarka@gitlab.com>2017-06-02 14:44:04 +0300
commitb487a32cc0fc14e4c0977cb6ff298131818fea16 (patch)
tree4ab11a5e49ad6307f77e1c63540c5de08404554d /app/controllers/projects/services_controller.rb
parent112d540df4a37aeca198dc39e715e04e3655c1f7 (diff)
Address review comments
Diffstat (limited to 'app/controllers/projects/services_controller.rb')
-rw-r--r--app/controllers/projects/services_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/services_controller.rb b/app/controllers/projects/services_controller.rb
index 264665942f8..704f8cc8a79 100644
--- a/app/controllers/projects/services_controller.rb
+++ b/app/controllers/projects/services_controller.rb
@@ -4,7 +4,7 @@ class Projects::ServicesController < Projects::ApplicationController
# Authorize
before_action :authorize_admin_project!
before_action :service, only: [:edit, :update, :test]
- before_action :build_service, only: [:update, :test]
+ before_action :update_service, only: [:update, :test]
respond_to :html
@@ -50,7 +50,7 @@ class Projects::ServicesController < Projects::ApplicationController
end
end
- def build_service
+ def update_service
@service.assign_attributes(service_params[:service])
end