Flowdock
compute_public_path(source, dir, ext = nil, include_host = true) 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.

Show source
Register or log in to add new notes.