Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-02-10 16:20:51 +0300
committerTomasz Maczukin <tomasz@maczukin.pl>2016-02-19 15:18:48 +0300
commitd1ac00aea370cc81a575b2ea7a8ef655343cafd3 (patch)
tree797bd5710b3a3c6d8999afb0af692d712c0df8ab /lib/api/runners.rb
parent24eed1c5c1cbbad7081625ad98d06d151933f583 (diff)
Modify and fix output of delete and update of a runner
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r--lib/api/runners.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index 03803ede9fc..0c158745124 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -51,7 +51,7 @@ module API
attrs = attributes_for_keys [:description, :active, :tag_list]
if runner.update(attrs)
- present runner, with: Entities::RunnerDetails
+ present runner, with: Entities::RunnerDetails, current_user: current_user
else
render_validation_error!(runner)
end
@@ -68,7 +68,7 @@ module API
authenticate_delete_runner!(runner)
runner.destroy!
- present runner, with: Entities::RunnerDetails
+ present runner, with: Entities::Runner
end
end