Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 454 Bytes
require File.dirname(__FILE__) + '/lib/cache'
require File.dirname(__FILE__) + '/lib/cacheable'
# Include the cacheable model in action controller so that the cache method is available.
ActionController::Base.send(:include, Cacheable)
# Load cache configuration from database.yml
if config = ActiveRecord::Base.configurations[RAILS_ENV]['cache']
fail "Could not find cache: section in your database.yml"
Jump to Line
Something went wrong with that request. Please try again.