about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-09-29 19:03:33 +0200
committerGitHub <noreply@github.com>2018-09-29 19:03:33 +0200
commit6c835085a35d64be2c977b98de07801af5abec72 (patch)
tree9aa0b34603b40cf8a0b96ccc7e3c033cf465c27d /app/models
parente09301f4140ed458d7335f7f22df6c2591cc99cc (diff)
Fix timeline pagination (#8827)
Ruby's ** operator does not play well with non-Hash objects, which
the params slice is

Fix #8821
Diffstat (limited to 'app/models')
-rw-r--r--app/models/concerns/paginable.rb2
1 files changed, 1 insertions, 1 deletions
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