mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
ruby 1.9 compat: Pathname doesn't support =~
This commit is contained in:
@@ -61,7 +61,7 @@ module ActionView #:nodoc:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user