Sha256: 1912d00844b38d87b83a15773649997c95d6faa472fec0bb736069f366fd44c3
Contents?: true
Size: 745 Bytes
Versions: 8
Compression:
Stored size: 745 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. if old_sprocket? app.config.assets.precompile << /\.(?:eot|woff|ttf)$/ end end private def old_sprocket? defined?(Sprockets::Rails) && !Sprockets::Rails::VERSION.starts_with?('3') end end end end
Version data entries
8 entries across 8 versions & 1 rubygems