public
Description: has_cache is plugin that wraps Rails cache features into a simple automatic way.
Homepage:
Clone URL: git://github.com/fnando/has_cache.git
fnando (author)
Tue Nov 25 20:02:42 -0800 2008
commit  fe6277e3f26df1a652eba51a5eef4e9a56acdf60
tree    94987caf903e1f8415ca6f78aba2b10ef5ad65b9
parent  587fb963c7552cbbcf9a2ffbd9675235df56a271
has_cache / init.rb
100644 12 lines (10 sloc) 0.477 kb
1
2
3
4
5
6
7
8
9
10
11
12
require File.dirname(__FILE__) + "/lib/has_cache"
require "digest/md5"
 
# ActiveRecord only calls after_initialize callbacks only if is
# explicitly defined in a class.
class ActiveRecord::Base # :nodoc:
  def after_initialize; end
end
 
ActiveRecord::Base.send(:include, SimplesIdeias::Cached::ActiveRecord)
ActionController::Base.send(:include, SimplesIdeias::Cached::ActionPack::ActionController)
ActionView::Base.send(:include, SimplesIdeias::Cached::ActionPack::ActionView)