]> git.openstreetmap.org Git - rails.git/blob - app/helpers/asset_helper.rb
Only the sender of a message should be able to mark it as read/unread
[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