Module: Ramaze::Helper::Cache::SingletonMethods
- Defined in:
- lib/ramaze/helper/cache.rb
Instance Method Summary (collapse)
-
- (Object) cache_action(hash, &block)
This method allows you to cache whole actions.
Instance Method Details
- (Object) cache_action(hash, &block)
This method allows you to cache whole actions.
113 114 115 116 117 |
# File 'lib/ramaze/helper/cache.rb', line 113 def cache_action(hash, &block) hash[:key] = block if block_given? hash[:method] = hash[:method].to_s trait[:cache_action] << hash end |