Skip to content
Snippets Groups Projects
Commit f2ef8ff3 authored by James Lopez's avatar James Lopez
Browse files

refactor code based on feedback

Former-commit-id: f15466bd
parent 4f357f70
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -16,7 +16,7 @@ class Admin::ServicesController < Admin::ApplicationController
 
def update
if service.update_attributes(service_params[:service])
PropagateServiceTemplateWorker.perform_async(service.id) if service.active?
PropagateServiceTemplateWorker.perform_async(service.id) if service.active?
 
redirect_to admin_application_settings_services_path,
notice: 'Application settings saved successfully'
Loading
Loading
Loading
Loading
@@ -11,7 +11,7 @@ module Projects
end
 
def propagate
return unless @template&.active
return unless @template&.active?
 
Rails.logger.info("Propagating services for template #{@template.id}")
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment