Sha256: 26ee4fbbd446c684c2fb7d9a965193839ecee68621727f16de818c7865fc07d4

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

require 'haml-rails'
require 'compass-rails'

module IuguUX
  class Engine < Rails::Engine
      initializer 'iugu-ux.setup', :group => :all do |app|
        app.config.assets.js_compressor = :closure
        app.config.assets.precompile += IuguUX.src
        app.config.compass.sprite_load_path << app.root.join('app','assets','sprites')
        app.config.compass.sprite_load_path << IuguUX.sprite_load_path 
        app.config.assets.paths << File.join( IuguUX.assets_path, 'javascripts' )
        app.config.assets.paths << File.join( IuguUX.assets_path, 'javascripts', 'web-app' )
        app.config.assets.paths << File.join( IuguUX.assets_path, 'stylesheets' )
        app.config.assets.paths << File.join( IuguUX.assets_path, 'stylesheets', 'iugu-ux' )
        # app.config.assets.precompile << %w( vendor

        # app.config.compass.add_import_path File.join( IuguUX.assets_path, 'stylesheets' )
        # app.config.sass.load_paths << File.join( IuguUX.assets_path, 'stylesheets' )
        # app.config.sass.load_paths << File.join( IuguUX.assets_path, 'stylesheets', 'iugu-ux' )
        # app.config.sass.load_paths << File.join( IuguUX.assets_path, 'stylesheets', 'iugu-ux', 'google-code-prettify' )
      end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iugu-ux-1.0.25 lib/iugu-ux/railtie.rb
iugu-ux-1.0.24 lib/iugu-ux/railtie.rb