instance method
_cache_key
Ruby on Rails 2.10.2
Since v2.6.4 Last seen in v2.14.1Signature
_cache_key(key, options)
No documentation comment.
Parameters
-
keyreq -
optionsreq
Source
# File lib/jbuilder/jbuilder_template.rb, line 150
def _cache_key(key, options)
name_options = options.slice(:skip_digest, :virtual_path)
key = _fragment_name_with_digest(key, name_options)
if @context.respond_to?(:combined_fragment_cache_key)
key = @context.combined_fragment_cache_key(key)
else
key = url_for(key).split('://', 2).last if ::Hash === key
end
::ActiveSupport::Cache.expand_cache_key(key, :jbuilder)
end
Defined in lib/jbuilder/jbuilder_template.rb line 150
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Object