summaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-05-04 18:11:28 +0200
committerJames Lopez <james@jameslopez.es>2017-05-04 18:11:28 +0200
commitcf002738e766f977bdb0e857759f548a5c65c9bd (patch)
tree4162281ab28ac4eaf1f711e2f20c46125807397a /app/controllers/admin
parent78d059141b5f3345d797992e03680654ce762c76 (diff)
downloadgitlab-ce-cf002738e766f977bdb0e857759f548a5c65c9bd.tar.gz
refactor a few things based on feedback
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/services_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/admin/services_controller.rb b/app/controllers/admin/services_controller.rb
index 2b6f335cb2b..e335fbfffed 100644
--- a/app/controllers/admin/services_controller.rb
+++ b/app/controllers/admin/services_controller.rb
@@ -15,7 +15,9 @@ class Admin::ServicesController < Admin::ApplicationController
end
def update
- if service.update_and_propagate(service_params[:service])
+ if service.update_attributes(service_params[:service])
+ PropagateProjectServiceWorker.perform_async(service.id) if service.active?
+
redirect_to admin_application_settings_services_path,
notice: 'Application settings saved successfully'
else