Permalink
Browse files

ruby 1.9 compat: Pathname doesn't support =~

  • Loading branch information...
1 parent d0e5417 commit 46c12fdcb6fb11ae62786eeafd0d1784343b3daa @josh josh committed Mar 16, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/paths.rb
@@ -61,7 +61,7 @@ def find_template(original_template_path, format = nil, html_fallback = true)
end
end
- return Template.new(original_template_path, original_template_path =~ /\A\// ? "" : ".") if File.file?(original_template_path)
+ return Template.new(original_template_path, original_template_path.to_s =~ /\A\// ? "" : ".") if File.file?(original_template_path)
raise MissingTemplate.new(self, original_template_path, format)
end

0 comments on commit 46c12fd

Please sign in to comment.