[openstreetmap/openstreetmap-website] Make AssetHelper work without precompiled assets (PR #6856)

Marwin Hochfelsner notifications at github.com
Wed Mar 4 09:42:47 UTC 2026


As seen in #6848 and in https://github.com/openstreetmap/openstreetmap-website/pull/6565#discussion_r2564737305, the mapping from Sprockets' Manifest is only available if there is a manifest, which isn't the case without precompiled assets.

Since the test also passed on an empty hash, this slipped through the cracks.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6856

-- Commit Summary --

  * Make AssetHelper work without precompiled assets

-- File Changes --

    M app/helpers/asset_helper.rb (16)
    M test/helpers/asset_helper_test.rb (4)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6856.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6856.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6856
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6856 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260304/16dfd9fe/attachment.htm>


More information about the rails-dev mailing list