-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Rails/WhereEquals throughs error with specific ActiveRecord usecase #401
Labels
bug
Something isn't working
Comments
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Dec 10, 2020
Fixes rubocop#401. This PR fixes an error for `Rails/WhereEquals` when using only named placeholder template without replacement argument.
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Dec 10, 2020
Fixes rubocop#401. This PR fixes an error for `Rails/WhereEquals` when using only named placeholder template without replacement argument.
9 tasks
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Dec 10, 2020
Fixes rubocop#401. This PR fixes an error for `Rails/WhereEquals` when using only named placeholder template without replacement argument.
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Dec 12, 2020
Fixes rubocop#401. This PR fixes an error for `Rails/WhereEquals` when using only named placeholder template without replacement argument.
koic
added a commit
that referenced
this issue
Dec 12, 2020
[Fix #401] Fix an error for `Rails/WhereEquals`
Earlopain
added a commit
to Earlopain/rubocop-rails
that referenced
this issue
Aug 14, 2024
This is basically rubocop#401 again, and a bit of rubocop#1321
9 tasks
koic
pushed a commit
to koic/rubocop-rails
that referenced
this issue
Aug 23, 2024
This is basically rubocop#401 again, and a bit of rubocop#1321
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some code I support, has an implementation, which throughs in error inside
Rails/WhereEquals
.The code is strange, but it works and does what it needs to do.
Expected behavior
Rubocop should not through an error on the code
Actual behavior
This error is thrown.
Steps to reproduce the problem
Run
rubocop
with rubocop-rails >= 2.9.0 on this code:Yes, this code works and returns the
User
withname: 'Lastname
when it is run!!!!RuboCop version
The text was updated successfully, but these errors were encountered: