Method: Merb::Cache::CacheMixin::ClassMethods#cache!

Defined in:
lib/merb-cache/merb_ext/controller.rb

#cache!(conditions = {}) ⇒ Object



7
8
9
10
# File 'lib/merb-cache/merb_ext/controller.rb', line 7

def cache!(conditions = {})
  before(:_cache_before, conditions.only(:if, :unless).merge(:with => conditions))
  after(:_cache_after, conditions.only(:if, :unless).merge(:with => conditions))
end