We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When run rubocop over this:
scope :with_email_confirmed, (lambda do |email_confirmed| # ... end)
C: [Correctable] Style/RedundantParentheses: Don't use parentheses around an expression.
The parentheses are necessary, otherwise the code block would be passed directly to the scope function as a block instead of to the lambda.
scope
$ [bundle exec] rubocop -V 1.58.0 (using Parser 3.2.2.4, rubocop-ast 1.30.0, running on ruby 3.2.1) [arm64-darwin21]
The text was updated successfully, but these errors were encountered:
This was solved here: #12505
Sorry, something went wrong.
No branches or pull requests
When run rubocop over this:
The parentheses are necessary, otherwise the code block would be passed directly to the
scope
function as a block instead of to the lambda.RuboCop version
The text was updated successfully, but these errors were encountered: