Module: ActionView::Helpers::CacheHelper

Defined in:
lib/action_view/helpers/cache_helper.rb

Overview

See ActionController::Caching::Fragments for usage instructions.

Instance Method Summary collapse

Instance Method Details

#cache(binding, name = {}) ⇒ Object



5
6
7
# File 'lib/action_view/helpers/cache_helper.rb', line 5

def cache(binding, name = {})
  @controller.cache_erb_fragment(binding, name) { yield }
end