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.
1 parent 0d80007 commit c63048dCopy full SHA for c63048d
lib/view_component/compiler.rb
@@ -140,7 +140,7 @@ def template_errors
140
# `def render_mobile` would conflict with a sidecar template of `component.html+mobile.erb`
141
duplicate_template_file_and_inline_call_variants =
142
@templates.reject(&:inline_call?).map(&:variant) &
143
- @templates.select { _1.inline_call? && _1.defined_on_self? }.map(&:variant)
+ @templates.select { it.inline_call? && it.defined_on_self? }.map(&:variant)
144
145
unless duplicate_template_file_and_inline_call_variants.empty?
146
count = duplicate_template_file_and_inline_call_variants.count
0 commit comments