Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (10 sloc) 0.454 kb
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']
Cache.establish_connection(config)
else
fail "Could not find cache: section in your database.yml"
end
Jump to Line
Something went wrong with that request. Please try again.