|
|
@ -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 |
|
|
|