summaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-08-02 09:11:52 +0000
committerRémy Coutable <remy@rymai.me>2018-08-02 09:11:52 +0000
commitf20a40f4a1eed15e6e3f64e85b3e8b46e32f7553 (patch)
treee1a405e1cb249efa273009828555ed61b170ec88 /app/controllers/admin
parent2deb97adff1414d469e31ffad8582ab3c65bb80f (diff)
parent50abbd3e53d4f5e3e67543650a13aca9a54b37c2 (diff)
downloadgitlab-ce-f20a40f4a1eed15e6e3f64e85b3e8b46e32f7553.tar.gz
Merge branch 'frozen-string-enable-app-models' into 'master'
Enable frozen string in app/models/*.rb See merge request gitlab-org/gitlab-ce!20851
Diffstat (limited to 'app/controllers/admin')
-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