Skip to content

Commit

Permalink
Ruby 3 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
rkr090 committed Mar 21, 2023
1 parent 4537681 commit 7c20446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/smart_listing/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def name

def paginate options = {}
if @smart_listing.collection.respond_to? :current_page
@template.paginate @smart_listing.collection, {:remote => @smart_listing.remote?, :param_name => @smart_listing.param_name(:page)}.merge(@smart_listing.kaminari_options)
@template.paginate @smart_listing.collection, **{:remote => @smart_listing.remote?, :param_name => @smart_listing.param_name(:page)}.merge(@smart_listing.kaminari_options)
end
end

Expand Down

0 comments on commit 7c20446

Please sign in to comment.