Module: CacheRocket::Key

Included in:
CacheRocket, Fragment
Defined in:
lib/cache_rocket/key.rb

Instance Method Summary collapse

Instance Method Details

#cache_replace_key(key) ⇒ Object

string key containing the partial file name or placeholder key. It is a tag that should never be returned to be rendered by the client, but if so, it will be hidden since CRK is not a valid html tag.



8
9
10
# File 'lib/cache_rocket/key.rb', line 8

def cache_replace_key(key)
  "<crk #{key}>".html_safe
end