TODO: Get rid of config.assets.enabled
# File lib/sprockets/bootstrap.rb, line 8 8: def run 9: app, config = @app, @app.config 10: return unless app.assets 11: 12: config.assets.paths.each { |path| app.assets.append_path(path) } 13: 14: if config.assets.compress 15: # temporarily hardcode default JS compressor to uglify. Soon, it will work 16: # the same as SCSS, where a default plugin sets the default. 17: unless config.assets.js_compressor == false 18: app.assets.js_compressor = LazyCompressor.new { Sprockets::Compressors.registered_js_compressor(config.assets.js_compressor || :uglifier) } 19: end 20: 21: unless config.assets.css_compressor == false 22: app.assets.css_compressor = LazyCompressor.new { Sprockets::Compressors.registered_css_compressor(config.assets.css_compressor) } 23: end 24: end 25: 26: if config.assets.compile 27: app.routes.prepend do 28: mount app.assets => config.assets.prefix 29: end 30: end 31: 32: if config.assets.digest 33: app.assets = app.assets.index 34: end 35: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.