Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Ruby 2.7 deprecation warning #1010

@connorshea

Description

@connorshea
/Users/connorshea/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/kaminari-core-1.1.1/lib/kaminari/helpers/helper_methods.rb:25: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/connorshea/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/kaminari-core-1.1.1/lib/kaminari/helpers/paginator.rb:9: warning: The called method `initialize' is defined here

I assume this can be fixed by replacing paginator = paginator_class.new (template || self), options with paginator = paginator_class.new (template || self), **options? The current master has changed that file a lot, but it still has the same line (now at 115).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions