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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f15466bd
Commit
f15466bd
authored
May 05, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor code based on feedback
parent
6ecf16b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/controllers/admin/services_controller.rb
app/controllers/admin/services_controller.rb
+1
-1
app/services/projects/propagate_service_template.rb
app/services/projects/propagate_service_template.rb
+1
-1
No files found.
app/controllers/admin/services_controller.rb
View file @
f15466bd
...
@@ -16,7 +16,7 @@ class Admin::ServicesController < Admin::ApplicationController
...
@@ -16,7 +16,7 @@ class Admin::ServicesController < Admin::ApplicationController
def
update
def
update
if
service
.
update_attributes
(
service_params
[
:service
])
if
service
.
update_attributes
(
service_params
[
:service
])
PropagateServiceTemplateWorker
.
perform_async
(
service
.
id
)
if
service
.
active?
PropagateServiceTemplateWorker
.
perform_async
(
service
.
id
)
if
service
.
active?
redirect_to
admin_application_settings_services_path
,
redirect_to
admin_application_settings_services_path
,
notice:
'Application settings saved successfully'
notice:
'Application settings saved successfully'
...
...
app/services/projects/propagate_service_template.rb
View file @
f15466bd
...
@@ -11,7 +11,7 @@ module Projects
...
@@ -11,7 +11,7 @@ module Projects
end
end
def
propagate
def
propagate
return
unless
@template
&
.
active
return
unless
@template
&
.
active
?
Rails
.
logger
.
info
(
"Propagating services for template
#{
@template
.
id
}
"
)
Rails
.
logger
.
info
(
"Propagating services for template
#{
@template
.
id
}
"
)
...
...
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