Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
e8271226
Commit
e8271226
authored
Feb 12, 2015
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the service_name.
parent
378520bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/controllers/admin/services_controller.rb
app/controllers/admin/services_controller.rb
+2
-2
No files found.
app/controllers/admin/services_controller.rb
View file @
e8271226
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment