Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Ruby 2.7 keyword arguments related deprecation warning in Proc call #521

Merged

Conversation

narwold
Copy link
Contributor

@narwold narwold commented Mar 12, 2020

In translation files like https://github.com/rails/rails/blob/v6.0.2.1/activesupport/lib/active_support/locale/en.rb, a method is being specified that receives keyword arguments. However, the Proc.call in backend/base.rb#resolve passes a hash. This causes a Ruby deprecation warning.

This PR adds the double-splat operator to resolve this issue.

@radar radar merged commit 544cbe9 into ruby-i18n:master Mar 29, 2020
@radar
Copy link
Collaborator

radar commented Mar 29, 2020

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants