method
fragment_name_with_digest
v6.0.0 -
Show latest stable
- Class:
ActionView::Helpers::CacheHelper
fragment_name_with_digest(name, virtual_path, digest_path)private
No documentation available.
# File actionview/lib/action_view/helpers/cache_helper.rb, line 231
def fragment_name_with_digest(name, virtual_path, digest_path)
virtual_path ||= @virtual_path
if virtual_path || digest_path
name = controller.url_for(name).split("://").last if name.is_a?(Hash)
digest_path ||= digest_path_from_template(@current_template)
[ digest_path, name ]
else
name
end
end