]> git.openstreetmap.org Git - rails.git/blob - app/helpers/asset_helper.rb
Move diary comments hide/unhide actions to comments controller
[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