Method: ActionView::Helpers::CacheHelper#digest_path_from_template

Defined in:
actionview/lib/action_view/helpers/cache_helper.rb

#digest_path_from_template(template) ⇒ Object

:nodoc:



256
257
258
259
260
261
262
263
264
# File 'actionview/lib/action_view/helpers/cache_helper.rb', line 256

def digest_path_from_template(template) # :nodoc:
  digest = Digestor.digest(name: template.virtual_path, format: template.format, finder: lookup_context, dependencies: view_cache_dependencies)

  if digest.present?
    "#{template.virtual_path}:#{digest}"
  else
    template.virtual_path
  end
end