Get rid of extra .page call

This commit is contained in:
Airat Shigapov 2016-10-21 14:38:32 +03:00
parent 1a04a51b52
commit 3685e867c8
No known key found for this signature in database
GPG key ID: 95B04300D2844C47

View file

@ -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