]> git.openstreetmap.org Git - rails.git/blob - app/helpers/asset_helper.rb
Merge pull request #20 from karussell/routing
[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(/^#{directory}\//, "")] = asset_path(path)
7     end
8
9     assets
10   end
11 end