Module: Ramaze::Helper::Cache::SingletonMethods
- Defined in:
- lib/ramaze/helper/cache.rb
Instance Method Summary collapse
Instance Method Details
#cache(name, hash = {}) ⇒ Object
65 66 67 68 |
# File 'lib/ramaze/helper/cache.rb', line 65 def cache(name, hash = {}) Ramaze.deprecated('Helper::Cache::cache', 'Helper::Cache::cache_action') cache_action(hash.merge(:method => name)) end |
#cache_action(hash) ⇒ Object
70 71 72 73 |
# File 'lib/ramaze/helper/cache.rb', line 70 def cache_action(hash) hash[:method] = hash[:method].to_s trait[:cache_action] << hash end |