module AssetMapper

Constants

VERSION

Public Instance Methods

generate_mapping() click to toggle source
# File lib/asset_mapper.rb, line 22
def generate_mapping
  hash = {}

  files.map do |file|
    file_without_fingerprint = file.gsub(fingerprint_regexp, fingerprint_replacer)
    hash[file_without_fingerprint] = file
  end

  hash
end