From 6c835085a35d64be2c977b98de07801af5abec72 Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Sat, 29 Sep 2018 19:03:33 +0200
Subject: [PATCH] Fix timeline pagination (#8827)

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

Fix #8821
---
 app/models/concerns/paginable.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/concerns/paginable.rb b/app/models/concerns/paginable.rb
index 52f186918..8863094f7 100644
--- a/app/models/concerns/paginable.rb
+++ b/app/models/concerns/paginable.rb
@@ -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