From 5c1cc1c22686b33c47e8b4fe60788bb961f04f91 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Wed, 20 Jul 2016 12:30:24 -0300 Subject: [PATCH] refactoring tasks endpoint --- app/api/v1/tasks.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/api/v1/tasks.rb b/app/api/v1/tasks.rb index 1844154..912e7bb 100644 --- a/app/api/v1/tasks.rb +++ b/app/api/v1/tasks.rb @@ -15,9 +15,7 @@ module Api # Example Request: # GET host/api/v1/tasks?from=2013-04-04-14:41:43&until=2015-04-04-14:41:43&limit=10&private_token=e96fff37c2238fdab074d1dcea8e6317 get do - tasks = select_filtered_collection_of(environment, 'tasks', params) - tasks = tasks.select {|t| current_person.has_permission?(t.permission, environment)} - present_partial tasks, :with => Entities::Task + present_tasks(environment) end desc "Return the task id" -- libgit2 0.21.2