Fix timeline pagination (#8827)

Ruby's ** operator does not play well with non-Hash objects, which
the params slice is

Fix #8821
lolsob-rspec
Eugen Rochko 2018-09-29 19:03:33 +02:00 committed by GitHub
parent 09016dbda4
commit 92e5d6b6e5
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ module Paginable
query
}
scope :paginate_by_id, ->(limit, **options) {
scope :paginate_by_id, ->(limit, options = {}) {
if options[:min_id].present?
paginate_by_min_id(limit, options[:min_id]).reverse
else