diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-23 10:24:47 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-23 10:24:47 -0500 |
commit | db1bac796e2d53fac4b51a3f560010b8f663fb54 (patch) | |
tree | b3c758c74a3af683849dd933ae5d6b2c917ae6f4 /actionpack/lib/action_view | |
parent | 93e10f9911fb2a096681ee0a0bc82487a9a06c44 (diff) | |
download | rails-db1bac796e2d53fac4b51a3f560010b8f663fb54.tar.gz rails-db1bac796e2d53fac4b51a3f560010b8f663fb54.tar.bz2 rails-db1bac796e2d53fac4b51a3f560010b8f663fb54.zip |
Just file?
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/template.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/template.rb b/actionpack/lib/action_view/template.rb index 3fcd9a2d01..b281ff61f2 100644 --- a/actionpack/lib/action_view/template.rb +++ b/actionpack/lib/action_view/template.rb @@ -75,7 +75,7 @@ module ActionView #:nodoc: load_paths = Array(load_paths) + [nil] load_paths.each do |load_path| file = [load_path, path].compact.join('/') - return load_path, file if File.exist?(file) && File.file?(file) + return load_path, file if File.file?(file) end raise MissingTemplate.new(load_paths, path) end |