Module: Decidim::CacheHelper
- Included in:
- ApplicationHelper
- Defined in:
- app/helpers/decidim/cache_helper.rb
Overview
Helper overrides for the ActionView::Helpers::CacheHelper in order to take locale into account for fragment caching.
Instance Method Summary collapse
Instance Method Details
#cache(name = {}, options = {}) ⇒ Object
See: git.io/J3ouj
8 9 10 11 12 |
# File 'app/helpers/decidim/cache_helper.rb', line 8 def cache(name = {}, = {}, &) name = Array(name) + [current_locale] super(name, , &) end |