class Sprockets::Manifest

Public Instance Methods

compile_with_non_digest(*args) click to toggle source
# File lib/sprockets-digest-assets-fix.rb, line 3
def compile_with_non_digest *args
  compile_without_non_digest *args

  files.each do |(digest_path, info)|
    full_digest_path = File.join dir, digest_path
    full_non_digest_path = File.join dir, info['logical_path']
    logger.info "Writing #{full_non_digest_path}"
    if File.exists?(full_digest_path)
      FileUtils.cp full_digest_path, full_non_digest_path
    else
      logger.info "Not found: #{full_digest_path}"
    end
  end
end