From 71fe26e620ad735a093512e14c13b1eaa4927020 Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Tue, 28 Apr 2015 11:57:19 +0300 Subject: API rework && tests --- lib/api/runners.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/api/runners.rb') diff --git a/lib/api/runners.rb b/lib/api/runners.rb index 0ec4871..44aae22 100644 --- a/lib/api/runners.rb +++ b/lib/api/runners.rb @@ -10,11 +10,7 @@ module API authenticate! runners = Runner.all - if runners.present? - present runners, with: Entities::Runner - else - not_found! - end + present runners, with: Entities::Runner end # Delete runner -- cgit v1.2.1