Instance Method Details

# File 'actionpack/lib/sprockets/bootstrap.rb', line 8defrunapp,config=@app,@app.configreturnunlessapp.assetsconfig.assets.paths.each{|path|app.assets.append_path(path)}ifconfig.assets.compress# temporarily hardcode default JS compressor to uglify. Soon, it will work
# the same as SCSS, where a default plugin sets the default.
unlessconfig.assets.js_compressor==falseapp.assets.js_compressor=LazyCompressor.new{expand_js_compressor(config.assets.js_compressor||:uglifier)}endunlessconfig.assets.css_compressor==falseapp.assets.css_compressor=LazyCompressor.new{expand_css_compressor(config.assets.css_compressor)}endendifconfig.assets.compileapp.routes.prependdomountapp.assets=>config.assets.prefixendendifconfig.assets.digestapp.assets=app.assets.indexendend