Browse files

Fixed that cache fetch method would cause nil exception when called w…

…ith no options (closes #11253) [remy]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9032 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent a02c607 commit b2dd357d226273500c42935e389e81091f64231c @dhh dhh committed Mar 15, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/caching.rb
View
2 actionpack/lib/action_controller/caching.rb
@@ -54,7 +54,7 @@ def self.cache_configured?
protected
# Convenience accessor
- def cache(key, options = nil, &block)
+ def cache(key, options = {}, &block)
if cache_configured?
cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
else

0 comments on commit b2dd357

Please sign in to comment.