Flowdock
method

write_asset

Importance_0
v3.2.8 - Show latest stable - 0 notes - Class: StaticCompiler
write_asset(asset) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/sprockets/static_compiler.rb, line 37
    def write_asset(asset)
      path_for(asset).tap do |path|
        filename = File.join(target, path)
        FileUtils.mkdir_p File.dirname(filename)
        asset.write_to(filename)
        asset.write_to("#{filename}.gz") if filename.to_s =~ /\.(css|js)$/
      end
    end
Register or log in to add new notes.