Skip to content

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

Closed
@loqimean

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions