diff options
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 |