Skip to content

Commit

Permalink
use single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhawksley committed Oct 2, 2019
1 parent fbbeab1 commit 8990b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/action_view/component/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def template_file_path

filename = self.instance_method(:initialize).source_location[0]
filename_without_extension = filename[0..-(File.extname(filename).length + 1)]
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]

if sibling_template_files.length > 1
raise StandardError.new("More than one template found for #{self}. There can only be one sidecar template file per component.")
Expand Down

0 comments on commit 8990b8d

Please sign in to comment.