class Sprockets::Asset
def write_to(filename)
filename - String target
Deprecated: Save asset to disk.
def write_to(filename) FileUtils.mkdir_p File.dirname(filename) PathUtils.atomic_write(filename) do |f| f.write source end # Set mtime correctly File.utime(mtime, mtime, filename) nil end