diff options
| author | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-02-10 14:20:51 +0100 |
|---|---|---|
| committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-02-19 13:18:48 +0100 |
| commit | d1ac00aea370cc81a575b2ea7a8ef655343cafd3 (patch) | |
| tree | 797bd5710b3a3c6d8999afb0af692d712c0df8ab /lib/api/runners.rb | |
| parent | 24eed1c5c1cbbad7081625ad98d06d151933f583 (diff) | |
| download | gitlab-ce-d1ac00aea370cc81a575b2ea7a8ef655343cafd3.tar.gz | |
Modify and fix output of delete and update of a runner
Diffstat (limited to 'lib/api/runners.rb')
| -rw-r--r-- | lib/api/runners.rb | 4 |
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 |
