Permalink
Browse files

fix for a case where sweepers are used but caches_page is not present…

… (thanks to cokron)
  • Loading branch information...
1 parent f727d3b commit d015d95c6298832432abd8075dae61c6d1b14ba9 @yeah yeah committed Dec 18, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/page_cache_fu/patches.rb
@@ -53,7 +53,7 @@ def self.included(base)
module Base
def page_cache_fu_path(orig_path)
- page_cache_fu_options = case orig_path
+ page_cache_fu_options = self.class.page_cache_fu_options.nil? ? {} : case orig_path
when Hash
self.class.page_cache_fu_options[orig_path[:action].to_sym]
when String

0 comments on commit d015d95

Please sign in to comment.