Commit f15466bd authored by James Lopez's avatar James Lopez
Browse files

refactor code based on feedback

parent e47403c09263
...@@ -16,7 +16,7 @@ def edit ...@@ -16,7 +16,7 @@ def edit
def update def update
if service.update_attributes(service_params[:service]) if service.update_attributes(service_params[:service])
PropagateServiceTemplateWorker.perform_async( if PropagateServiceTemplateWorker.perform_async( if
redirect_to admin_application_settings_services_path, redirect_to admin_application_settings_services_path,
notice: 'Application settings saved successfully' notice: 'Application settings saved successfully'
...@@ -11,7 +11,7 @@ def initialize(template) ...@@ -11,7 +11,7 @@ def initialize(template)
end end
def propagate def propagate
return unless @template&.active return unless @template&.active?"Propagating services for template #{}")"Propagating services for template #{}")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment