Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorAirat Shigapov <contact@airatshigapov.com>2016-10-21 14:38:32 +0300
committerAirat Shigapov <contact@airatshigapov.com>2016-10-24 22:56:27 +0300
commit3685e867c8bd34b8e56a7fc69c99c9563ce49a68 (patch)
treec833155bbd550cc9ffd4b85a9b1d9892acbcdc84 /lib/api
parent1a04a51b5249d78e4a3cfd47572a5e3dba3c4ad3 (diff)
Get rid of extra .page call
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/users.rb3
1 files changed, 1 insertions, 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