Commit e8271226 authored by Marin Jankovski's avatar Marin Jankovski

Use the service_name.

parent 378520bd
......@@ -26,8 +26,8 @@ class Admin::ServicesController < Admin::ApplicationController
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