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 fbbeab1 commit 8990b8dCopy full SHA for 8990b8d
lib/action_view/component/base.rb
@@ -117,7 +117,7 @@ def template_file_path
117
118
filename = self.instance_method(:initialize).source_location[0]
119
filename_without_extension = filename[0..-(File.extname(filename).length + 1)]
120
- sibling_template_files = Dir["#{filename_without_extension}.????.{#{ActionView::Template.template_handler_extensions.join(",")}}"] - [filename]
+ sibling_template_files = Dir["#{filename_without_extension}.????.{#{ActionView::Template.template_handler_extensions.join(',')}}"] - [filename]
121
122
if sibling_template_files.length > 1
123
raise StandardError.new("More than one template found for #{self}. There can only be one sidecar template file per component.")
0 commit comments