instance method _cache_key

Ruby on Rails 2.11.5

Since v2.6.4 Last seen in v2.14.1

Available in: v2.6.4 v2.7.0 v2.8.0 v2.9.1 v2.10.2 v2.11.5 v2.12.0 v2.13.0 v2.14.1

Signature

_cache_key(key, options)

No documentation comment.

Parameters

key req
options req
Source
# File lib/jbuilder/jbuilder_template.rb, line 202
  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 202 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Object

Type at least 2 characters to search.

↑↓ navigate · open · esc close