]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/asset_helper.rb
Implement context menu with: directions, add note, describe, centre.
[rails.git] / app / helpers / asset_helper.rb
index 67c1a141d7d79a22a38b99979bca6088763e5e0e..5b07407353c3e8a9276a9635d54e01b74f55ab67 100644 (file)
@@ -3,7 +3,7 @@ module AssetHelper
     assets = {}
 
     Rails.application.assets.index.each_logical_path("#{directory}/*") do |path|
-      assets[path.sub(/^#{directory}\//, "")] = asset_path(path)
+      assets[path.sub(%r{^#{directory}/}, "")] = asset_path(path)
     end
 
     assets