Commit e8271226 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Use the service_name.

parent 21634e4476e3
......@@ -26,8 +26,8 @@ def update
def services_templates
templates = []
Service.available_services_names.each do |service|
service_template = service.concat("_service").camelize.constantize
Service.available_services_names.each do |service_name|
service_template = service_name.concat("_service").camelize.constantize
templates << service_template.where(template: true).first_or_create
end
......
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