Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
7bec0eb315e9
Commit
ee0e9830
authored
Oct 29, 2013
by
Dmitriy Zaporozhets
Browse files
gitlab-ci service api: clean values instead of destroy
parent
3d31cff8b50b
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/api/services.rb
View file @
7bec0eb3
...
...
@@ -31,7 +31,11 @@ class Services < Grape::API
# DELETE /projects/:id/keys/:id
delete
":id/services/gitlab-ci"
do
if
user_project
.
gitlab_ci_service
user_project
.
gitlab_ci_service
.
destroy
user_project
.
gitlab_ci_service
.
update_attributes
(
active:
false
,
token:
nil
,
project_url:
nil
)
end
end
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