Sha256: 1e6858bc5d328d7fd1d1a935f63e845dcf361cf6f25460feb9ccc8da38706785

Contents?: true

Size: 594 Bytes

Versions: 1

Compression:

Stored size: 594 Bytes

Contents

module MaterializeRails
  class Engine < ::Rails::Engine
    initializer 'materialize-rails.assets.precompile' do |application|
      %w(fonts images javascripts stylesheets).each do |type|
        application.config.assets.paths << root.join('app', 'assets', type).to_s
      end

      unless Sprockets::Rails::VERSION.starts_with? '3'
        application.config.assets.precompile << %r(material-design-icons/Material-Design-Icons\.(?:eot|svg|ttf|woff|woff2?)$)
        application.config.assets.precompile << %r(roboto/Roboto-[\w-]+\.(?:eot|svg|ttf|woff|woff2?)$)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
materialize-rails-0.97.5.1 lib/materialize-rails/engine.rb