Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
2505c04fc08d
Commit
e8271226
authored
Feb 12, 2015
by
Marin Jankovski
Browse files
Use the service_name.
parent
21634e4476e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/controllers/admin/services_controller.rb
View file @
2505c04f
...
...
@@ -26,8 +26,8 @@ def update
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