Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 9032

Show
Ignore:
Timestamp:
03/15/08 20:02:46 (6 months ago)
Author:
david
Message:

Fixed that cache fetch method would cause nil exception when called with no options (closes #11253) [remy]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/caching.rb

    r8546 r9032  
    5555    protected 
    5656      # Convenience accessor 
    57       def cache(key, options = nil, &block) 
     57      def cache(key, options = {}, &block) 
    5858        if cache_configured? 
    5959          cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)