diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-06 23:37:28 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-06 23:37:28 +0000 |
commit | 86543a70fb93069d2522dad00edf06c1ef2570de (patch) | |
tree | f5e5805b5fb35ea5dbe2f074ee704623a11653b1 /actionpack/lib/action_controller | |
parent | 19e8b42a56536e0621097c337546557565579c57 (diff) | |
download | rails-86543a70fb93069d2522dad00edf06c1ef2570de.tar.gz rails-86543a70fb93069d2522dad00edf06c1ef2570de.tar.bz2 rails-86543a70fb93069d2522dad00edf06c1ef2570de.zip |
Fixed issues with caching root pages #734 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@867 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/caching.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index e8200f6ded..46ef18c010 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -91,7 +91,7 @@ module ActionController #:nodoc: private def page_cache_file(path) name = ((path.empty? || path == "/") ? "/index" : path) - name << '.html' unless path.split('/').last.include? '.' + name << '.html' unless (name.split('/').last || name).include? '.' return name end |