source: subversion/sites/rails_port/config/initializers/asset_tag_helper.rb @ 6563

Last change on this file since 6563 was 6563, checked in by tomhughes, 12 years ago

Rename initialiser to fix typo.

File size: 222 bytes
Line 
1module 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
10end
Note: See TracBrowser for help on using the repository browser.