Sha256: 885e03c749777f8ab45d126d1350a1ab2d3b0697cad2243da896a6f77f60f5da

Contents?: true

Size: 500 Bytes

Versions: 12

Compression:

Stored size: 500 Bytes

Contents

require "action_controller/railtie"

module Csso

  class Railtie < ::Rails::Railtie
    initializer "csso.environment", :after => "sprockets.environment" do |app|
      Csso.install(app.assets)
    end

    # saas-rails-3.2.4(and may be others) sets itself as default, ignoring config? => override :(
    initializer "csso.setup", :after => :setup_compression, :group => :all do |app|
      if app.config.assets.enabled
        app.config.assets.css_compressor = :csso
      end
    end

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
csso-rails-0.8.0 lib/csso/railtie.rb
csso-rails-0.7.1 lib/csso/railtie.rb
csso-rails-0.7.0 lib/csso/railtie.rb
csso-rails-0.6.0 lib/csso/railtie.rb
csso-rails-0.5.0 lib/csso/railtie.rb
csso-rails-0.4.1 lib/csso/railtie.rb
csso-rails-0.4.0 lib/csso/railtie.rb
csso-rails-0.3.4 lib/csso/railtie.rb
csso-rails-0.3.3 lib/csso/railtie.rb
csso-rails-0.3.2 lib/csso/railtie.rb
csso-rails-0.3.1 lib/csso/railtie.rb
csso-rails-0.3.0 lib/csso/railtie.rb