module NonDigestAssets::CompileWithNonDigest
Public Instance Methods
compile(*args)
click to toggle source
Calls superclass method
# File lib/non-digest-assets.rb, line 51 def compile(*args) paths = super NonDigestAssets.filter_assets(assets).each do |(logical_path, digest_path)| full_digest_path = File.join dir, digest_path full_digest_gz_path = "#{full_digest_path}.gz" full_non_digest_path = File.join dir, logical_path full_non_digest_gz_path = "#{full_non_digest_path}.gz" if File.exist? full_digest_path logger.debug "Writing #{full_non_digest_path}" NonDigestAssets.copy_file full_digest_path, full_non_digest_path else logger.debug "Could not find: #{full_digest_path}" end if File.exist? full_digest_gz_path logger.debug "Writing #{full_non_digest_gz_path}" NonDigestAssets.copy_file full_digest_gz_path, full_non_digest_gz_path else logger.debug "Could not find: #{full_digest_gz_path}" end end paths end