Merge remote-tracking branch 'openstreetmap/pull/903'
[rails.git] / app / helpers / asset_helper.rb
1 module AssetHelper
2   def assets(directory)
3     assets = {}
4
5     Rails.application.assets.index.each_logical_path("#{directory}/*") do |path|
6       assets[path.sub(%r{^#{directory}/}, "")] = asset_path(path)
7     end
8
9     assets
10   end
11 end