Module: CacheKeyForViewHelper

Includes:
CacheKeyForHelper
Defined in:
lib/cache_key_for/cache_key_for_view_helper.rb

Overview

“‘ app_name:views/en/datacenters/5bd92bd352e7726d02175752913014711f5d412e/companies/1-20150619101645935901000/2015-06- 26/app/views/services/datacenters.html.haml/4324f99340fd2b2bc7e26b8e9b79d8f5 “`

Instance Method Summary collapse

Methods included from CacheKeyForHelper

#cache_key_for

Instance Method Details

#cache_key_for_view(file, scoped_collection, collection_prefix, cache_owner_cache_key = '', suffix = '', whitelist_params = [], default_params = {}) ⇒ Object



19
20
21
# File 'lib/cache_key_for/cache_key_for_view_helper.rb', line 19

def cache_key_for_view(file, scoped_collection, collection_prefix, cache_owner_cache_key = '', suffix = '', whitelist_params = [], default_params = {})
  "#{cache_key_for(scoped_collection, collection_prefix, cache_owner_cache_key, suffix, whitelist_params, default_params)}#{file.gsub(Rails.root.to_s, '')}"
end