summaryrefslogtreecommitdiff
path: root/app/controllers/admin/services_controller.rb
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2015-02-12 10:57:08 -0800
committerMarin Jankovski <maxlazio@gmail.com>2015-02-12 10:57:08 -0800
commite8271226b1a474f097909b8006d78dd60bbca7be (patch)
tree62411d88f5dd820eb66fa7f714769f5322b35d94 /app/controllers/admin/services_controller.rb
parent378520bd8be0a23510c9beea5987e10343194fb5 (diff)
downloadgitlab-ce-e8271226b1a474f097909b8006d78dd60bbca7be.tar.gz
Use the service_name.
Diffstat (limited to 'app/controllers/admin/services_controller.rb')
-rw-r--r--app/controllers/admin/services_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin/services_controller.rb b/app/controllers/admin/services_controller.rb
index 554a7d83d9f..e80cabd6e18 100644
--- a/app/controllers/admin/services_controller.rb
+++ b/app/controllers/admin/services_controller.rb
@@ -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