-
-
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/RenderInline: undefined method `value' #300
Labels
bug
Something isn't working
Comments
tejasbubane
added a commit
to tejasbubane/rubocop-rails
that referenced
this issue
Jul 21, 2020
… render options Closes: rubocop#300
9 tasks
tejasbubane
added a commit
to tejasbubane/rubocop-rails
that referenced
this issue
Jul 21, 2020
…ender options Closes: rubocop#300
tejasbubane
added a commit
to tejasbubane/rubocop-rails
that referenced
this issue
Jul 24, 2020
…ender options Closes: rubocop#300
tejasbubane
added a commit
to tejasbubane/rubocop-rails
that referenced
this issue
Jul 24, 2020
…ender options Closes: rubocop#300
koic
added a commit
that referenced
this issue
Jul 24, 2020
[Fix #300] Fix `Rails/RenderInline` error on variable key in render options
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
RoboCop should ignore key-value pairs where the key is represented as a variable.
Actual behavior
The error
undefined method 'value' for s(:lvar, :serializer):RuboCop::AST::Node
occurs when Rails/RenderInline cop checkrender json: ...
line with hash where the key is represented as a variable.Steps to reproduce the problem
Run RuboCop on the following:
RuboCop version
Possible fix
I think this can be fixed by adding
respond_to
check toincludes_inline_key?
method, but I'm not sure.The text was updated successfully, but these errors were encountered: