Skip to content

Commit 46c12fd

Browse files
committed
ruby 1.9 compat: Pathname doesn't support =~
1 parent d0e5417 commit 46c12fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionpack/lib/action_view/paths.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def find_template(original_template_path, format = nil, html_fallback = true)
6161
end
6262
end
6363

64-
return Template.new(original_template_path, original_template_path =~ /\A\// ? "" : ".") if File.file?(original_template_path)
64+
return Template.new(original_template_path, original_template_path.to_s =~ /\A\// ? "" : ".") if File.file?(original_template_path)
6565

6666
raise MissingTemplate.new(self, original_template_path, format)
6767
end

0 commit comments

Comments
 (0)