]> git.openstreetmap.org Git - rails.git/blob - app/helpers/asset_helper.rb
Bump eslint from 8.31.0 to 8.32.0
[rails.git] / app / helpers / asset_helper.rb
1 module AssetHelper
2   def assets(directory)
3     Rails.application.assets_manifest.assets.keys.each_with_object({}) do |asset, assets|
4       assets[asset] = asset_path(asset) if asset.start_with?("#{directory}/")
5     end
6   end
7 end