Parent

Class/Module Index [+]

Quicksearch

Sprockets::Railtie

TODO: Get rid of config.assets.enabled

Protected Instance Methods

expand_css_compressor(sym) click to toggle source
# File lib/sprockets/railtie.rb, line 96
def expand_css_compressor(sym)
  case sym
  when :yui
    require 'yui/compressor'
    YUI::CssCompressor.new
  else
    sym
  end
end
expand_js_compressor(sym) click to toggle source
# File lib/sprockets/railtie.rb, line 80
def expand_js_compressor(sym)
  case sym
  when :closure
    require 'closure-compiler'
    Closure::Compiler.new
  when :uglifier
    require 'uglifier'
    Uglifier.new
  when :yui
    require 'yui/compressor'
    YUI::JavaScriptCompressor.new
  else
    sym
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.