This method allows you to cache whole actions.
@example Basic usage
class Foo < Ramaze::Controller helper :cache cache_action :method => :bar def bar rand end end
# File lib/ramaze/helper/cache.rb, line 113 113: def cache_action(hash, &block) 114: hash[:key] = block if block_given? 115: hash[:method] = hash[:method].to_s 116: trait[:cache_action] << hash 117: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.