instance method
_cache_key
Ruby on Rails 2.5.0
Since v2.4.1 Last seen in v2.5.0 PrivateAvailable in: v2.4.1 v2.5.0
Signature
_cache_key(key, options)
No documentation comment.
Parameters
-
keyreq -
optionsreq
Source
# File lib/jbuilder/jbuilder_template.rb, line 105
def _cache_key(key, options)
key = _fragment_name_with_digest(key, options)
key = url_for(key).split('://', 2).last if ::Hash === key
::ActiveSupport::Cache.expand_cache_key(key, :jbuilder)
end
Defined in lib/jbuilder/jbuilder_template.rb line 105
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in JbuilderTemplate