mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
afb053b4d3
When using compute_source_path to determine the full path of an asset, if our source begins with '/', we don't want to include the directory. Examples are illustrative: > compute_source_path("foo", "stylesheets", "css") => "/Users/steve/src/my_app/public/stylesheets/foo.css" > compute_source_path("/foo", "stylesheets", "css") => "/Users/steve/src/my_app/public/foo.css" Before this patch, the second example would return the same as the first. Fixes #5680. |
||
---|---|---|
.. | ||
bar.html | ||
baz.css | ||
index.html | ||
こんにちは.html |