lib/action_controller/caching.rb in actionpack-1.5.0 vs lib/action_controller/caching.rb in actionpack-1.5.1

- old
+ new

@@ -88,10 +88,12 @@ end end private def page_cache_file(path) - (path.empty? ? "/index" : path) + ".html" + name = ((path.empty? || path == "/") ? "/index" : path) + name << '.html' unless (name.split('/').last || name).include? '.' + return name end def page_cache_path(path) page_cache_directory + page_cache_file(path) end