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 = {}, &block) ⇒ Object



8
9
10
11
12
# File 'app/helpers/decidim/cache_helper.rb', line 8

def cache(name = {}, options = {}, &block)
  name = Array(name) + [current_locale]

  super(name, options, &block)
end