app/helpers/scrivito_helper.rb in scrivito_sdk-1.7.0.rc1 vs app/helpers/scrivito_helper.rb in scrivito_sdk-1.7.0.rc2

- old
+ new

@@ -450,10 +450,10 @@ # @param key [String] a name describing the data to be cached. # @param options [Hash] a hash that enables further configuration of the fragment # cache. The options are passed to the +cache+ helper of Rails. See the Rails # {http://api.rubyonrails.org/classes/ActionView/Helpers/CacheHelper.html#method-i-cache documentation} # for details. - def scrivito_cache(key, options=nil, &block) + def scrivito_cache(key, options={}, &block) workspace = Scrivito::Workspace.current cache_if(workspace.published? && !scrivito_user, [workspace.cache_key, key], options, &block) end #