-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We've been passing translate options in a way which is not compatible with Ruby 3. This led to the following error: ActionView::Template::Error: wrong number of arguments (given 2, expected 1) Ruby 3 interprets keyword arguments vs. hashes differently. The I18n source code has a comment which shows the correct expected usage: https://github.com/ruby-i18n/i18n/blob/v1.8.10/lib/i18n.rb#L181-L194 Removing the {} causes the arguments to be sent correctly. Note that Ruby 3 is not expected to work with Rails 5.2: rails/rails#40938 (comment)
- Loading branch information
Showing
3 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters