method
compute_public_path
rails latest stable - Class:
ActionView::Helpers::AssetTagHelper::AssetTag
compute_public_path(source)private
Add the the extension ext if not present. Return full URLs otherwise untouched. Prefix with /dir/ if lacking a leading /. Account for relative URL roots. Rewrite the asset path for cache-busting asset ids. Include asset host, if configured, with the correct request protocol.