instance method _fragment_name_with_digest

Ruby on Rails 2.4.1

Since v2.4.1 Last seen in v2.5.0 Private

Available in: v2.4.1 v2.5.0

Signature

_fragment_name_with_digest(key, options)

No documentation comment.

Parameters

key req
options req
Source
# File lib/jbuilder/jbuilder_template.rb, line 111
  def _fragment_name_with_digest(key, options)
    if @context.respond_to?(:cache_fragment_name)
      # Current compatibility, fragment_name_with_digest is private again and cache_fragment_name
      # should be used instead.
      @context.cache_fragment_name(key, options)
    elsif @context.respond_to?(:fragment_name_with_digest)
      # Backwards compatibility for period of time when fragment_name_with_digest was made public.
      @context.fragment_name_with_digest(key)
    else
      key
    end
  end

Defined in lib/jbuilder/jbuilder_template.rb line 111 · View on GitHub · Improve this page · Find usages on GitHub

Defined in JbuilderTemplate

Type at least 2 characters to search.

↑↓ navigate · open · esc close