From 3685e867c8bd34b8e56a7fc69c99c9563ce49a68 Mon Sep 17 00:00:00 2001 From: Airat Shigapov Date: Fri, 21 Oct 2016 14:38:32 +0300 Subject: [PATCH] Get rid of extra .page call --- lib/api/users.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/api/users.rb b/lib/api/users.rb index 20801b7e294..c28e07a76b7 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -337,8 +337,7 @@ module API merge(ProjectsFinder.new.execute(current_user)). references(:project). with_associations. - recent. - page(params[:page]) + recent present paginate(events), with: Entities::Event end