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

I18nLocaleTexts cop doesn't work with "flash.now" #1007

Closed
loqimean opened this issue May 18, 2023 · 0 comments · Fixed by #1009
Closed

I18nLocaleTexts cop doesn't work with "flash.now" #1007

loqimean opened this issue May 18, 2023 · 0 comments · Fixed by #1009

Comments

@loqimean
Copy link

Expected behavior

an expected issue that I don't use I18n for text, like next:
Screenshot 2023-05-18 at 15 41 44

Actual behavior

When I use the "now" method for the flash, there is no one message, look at an attachment:
Screenshot 2023-05-18 at 15 42 16

Steps to reproduce the problem

Simply use the code in your controller or anywhere where you can:

flash.now[:error] = "hello"

RuboCop version

1.48.1 (using Parser 3.2.2.0, rubocop-ast 1.28.0, running on ruby 3.1.1) [arm64-darwin21]

  • rubocop-performance 1.16.0
  • rubocop-rails 2.19.0
  • rubocop-rspec 2.19.0
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 a pull request may close this issue.

1 participant