Sha256: 7bc313e07988d175801da248002a716ac956e9f0af2a9397996b7d4643992129

Contents?: true

Size: 645 Bytes

Versions: 1

Compression:

Stored size: 645 Bytes

Contents

module SummernoteRails
  module Rails
    class Engine < ::Rails::Engine
      initializer 'summernote-rails.assets.precompile' do |app|
        app.config.assets.paths << root.join('vendor', 'assets', 'fonts')
        # fix for: https://github.com/twbs/bootstrap-sass/issues/960
        # regex no longer supported by assets.precompile
        # sprockets-rails 3 tracks down the calls to `font_path` and `image_path`
        # and automatically precompiles the referenced assets.
        unless Sprockets::Rails::VERSION.starts_with?('3')
          app.config.assets.precompile << /\.(?:eot|woff|ttf)$/
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
summernote-rails-0.8.2.0 lib/summernote-rails/engine.rb