Skip to content

Commit

Permalink
Merge #61
Browse files Browse the repository at this point in the history
61: Fix kaminari initialize error in Ruby3 r=curquiza a=nykma

Works fine for me. Need more confirmation from ruby2 users.

Fixes #60 

Co-authored-by: Nyk Ma <[email protected]>
  • Loading branch information
bors[bot] and nykma authored Aug 24, 2021
2 parents 0e1ede3 + 30a8106 commit 74ead73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/meilisearch/pagination/kaminari.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ module Pagination
class Kaminari < ::Kaminari::PaginatableArray

def initialize(array, options)
super(array, options)
if RUBY_VERSION >= '3'
super(array, **options)
else
super(array, options)
end
end

def limit(num)
Expand Down

0 comments on commit 74ead73

Please sign in to comment.