We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8456f5c + 5ad0f66 commit 55bf7a9Copy full SHA for 55bf7a9
lib/rubocop/cop/github/rails_view_render_literal.rb
@@ -54,7 +54,7 @@ def on_send(node)
54
55
if render_literal?(node) && node.arguments.count > 1
56
locals = node.arguments[1]
57
- elsif options_pairs = render_with_options?(node)
+ elsif option_pairs = render_with_options?(node)
58
locals = option_pairs.map { |pair| locals_key?(pair) }.compact.first
59
end
60
0 commit comments