Skip to content
Snippets Groups Projects
Commit e8271226 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Use the service_name.

parent 378520bd
No related branches found
No related tags found
1 merge request!8686add "Uplaod" and "Replace" functionality
Loading
Loading
@@ -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
 
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