Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Ruby 2.7 keyword params deprecation warning (#939)
This fixes the following warnings that are printed when using friendly_id with Ruby 2.7.1: Using friendly_id @ master: ``` friendly_id-984dac788d10/lib/friendly_id/history.rb:75: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call rails-370188aea03f/activerecord/lib/active_record/associations.rb:1370: warning: The called method `has_many' is defined here ``` Using this PR, no warnings are printed.
- Loading branch information
The double-splat plus hash is odd, I would suggest: