summaryrefslogtreecommitdiff
path: root/app/controllers/admin/services_controller.rb
diff options
context:
space:
mode:
authorgfyoung <gfyoung17@gmail.com>2018-07-25 02:30:33 -0700
committergfyoung <gfyoung17@gmail.com>2018-07-26 16:55:41 -0700
commit50abbd3e53d4f5e3e67543650a13aca9a54b37c2 (patch)
tree4b36ec83d974102ab38738b05678e3f0f738a6f3 /app/controllers/admin/services_controller.rb
parentcaeb4597a5b24e0eaa96b24901ce9208c2eef4bf (diff)
downloadgitlab-ce-50abbd3e53d4f5e3e67543650a13aca9a54b37c2.tar.gz
Enable frozen string in app/models/*.rbrepo-forks/gitlab-ce-frozen-string-enable-app-models
Partially addresses #47424.
Diffstat (limited to 'app/controllers/admin/services_controller.rb')
-rw-r--r--app/controllers/admin/services_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/admin/services_controller.rb b/app/controllers/admin/services_controller.rb
index e70aa549140..91a36af34f3 100644
--- a/app/controllers/admin/services_controller.rb
+++ b/app/controllers/admin/services_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
class Admin::ServicesController < Admin::ApplicationController
include ServiceParams
@@ -30,7 +32,7 @@ class Admin::ServicesController < Admin::ApplicationController
def services_templates
Service.available_services_names.map do |service_name|
- service_template = service_name.concat("_service").camelize.constantize
+ service_template = "#{service_name}_service".camelize.constantize
service_template.where(template: true).first_or_create
end
end