Include the language in all widget caches

pull/6827/head
Tim Felgentreff 14 years ago
parent b471f013c1
commit 2d49fb1c7e
  1. 2
      lib/widget/base.rb

@ -61,7 +61,7 @@ class Widget::Base < Widget
def cache_key def cache_key
@cache_key ||= Digest::SHA1::hexdigest begin @cache_key ||= Digest::SHA1::hexdigest begin
if subject.respond_to? :cache_key if subject.respond_to? :cache_key
"#{self.class.name.demodulize}/#{subject.cache_key}/#{@options.sort_by(&:to_s)}" "#{I18n.locale.to_s}/#{self.class.name.demodulize}/#{subject.cache_key}/#{@options.sort_by(&:to_s)}"
else else
subject.inspect subject.inspect
end end

Loading…
Cancel
Save