When an asset's path (/app/assets/application.js) shares a
substring with the src_dir of an application (/app), the PathMapper
removes the src_dir too many times (assetslication.js).
This changes the gsub to a simple sub so that only the first occurrence
is modified.
When an asset's path (
/app/assets/application.js
) shares a substring with the src_dir of an application (/app
), the PathMapper removes the src_dir too many times (assetslication.js
).This changes the gsub to a simple sub so that only the first occurrence is modified.