]> git.openstreetmap.org Git - rails.git/blob - config/initializers/asset_tag_helper.rb
a5f2e5ac3690819b3098825c19cdae96ef415d8f
[rails.git] / config / initializers / asset_tag_helper.rb
1 module ActionView
2   module Helpers
3     module AssetTagHelper
4       def rewrite_asset_path!(source)
5         asset_id = rails_asset_id(source)
6         source << "/#{asset_id}" if !asset_id.blank?
7       end
8     end
9   end
10 end