Sha256: 52080ac4503a7ec7eb0f38e091307e687add8d1858477ae29bb1dbae807e6b1a

Contents?: true

Size: 415 Bytes

Versions: 3

Compression:

Stored size: 415 Bytes

Contents

# register_rails_engine
module ColorgyStyle
  module Rails
    class Engine < ::Rails::Engine
      initializer 'colorgy_style.assets.precompile' do |app|
        %w(stylesheets javascripts fonts images).each do |sub|
          app.config.assets.paths << root.join('assets', sub).to_s
        end
        app.config.assets.precompile << %r(colorgy/.+\.(?:png|gif|jpg|eot|svg|ttf|woff)$)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
colorgy_style-0.0.0.4 lib/colorgy_style/rails.rb
colorgy_style-0.0.0.2 lib/colorgy_style/rails.rb
colorgy_style-0.0.0.1 lib/colorgy_style/rails.rb