From d1ac00aea370cc81a575b2ea7a8ef655343cafd3 Mon Sep 17 00:00:00 2001 From: Tomasz Maczukin Date: Wed, 10 Feb 2016 14:20:51 +0100 Subject: Modify and fix output of delete and update of a runner --- lib/api/runners.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/api/runners.rb') 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 -- cgit v1.2.1