diff options
author | thedarkone <thedarkone2@gmail.com> | 2009-03-24 10:44:54 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-03-24 10:54:17 -0500 |
commit | e3b166aab37ddc2fbab030b146eb61713b91bf55 (patch) | |
tree | 7cb5c94d64fe5ef4c2a3b55e278b9a637b6b874d /actionpack/lib/action_view/paths.rb | |
parent | 4c2f09f23a05823b076cdfb8ac39934e0678798a (diff) | |
download | rails-e3b166aab37ddc2fbab030b146eb61713b91bf55.tar.gz rails-e3b166aab37ddc2fbab030b146eb61713b91bf55.tar.bz2 rails-e3b166aab37ddc2fbab030b146eb61713b91bf55.zip |
Simplify handling of absolute path templates. [#2276 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/lib/action_view/paths.rb')
-rw-r--r-- | actionpack/lib/action_view/paths.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/paths.rb b/actionpack/lib/action_view/paths.rb index 8cc3fe291c..a0a2f96886 100644 --- a/actionpack/lib/action_view/paths.rb +++ b/actionpack/lib/action_view/paths.rb @@ -61,7 +61,7 @@ module ActionView #:nodoc: end end - return Template.new(original_template_path, original_template_path.to_s =~ /\A\// ? "" : ".") if File.file?(original_template_path) + return Template.new(original_template_path) if File.file?(original_template_path) raise MissingTemplate.new(self, original_template_path, format) end |