Method: ActiveSupport::Cache::FileStore#read

Defined in:
lib/gems/activesupport-2.2.2/lib/active_support/cache/file_store.rb

#read(name, options = nil) ⇒ Object



11
12
13
14
# File 'lib/gems/activesupport-2.2.2/lib/active_support/cache/file_store.rb', line 11

def read(name, options = nil)
  super
  File.open(real_file_path(name), 'rb') { |f| Marshal.load(f) } rescue nil
end