3 class Engine < ::Rails::Engine
4 initializer 'bootstrap-sass.assets.precompile' do |app|
5 %w(stylesheets javascripts fonts images).each do |sub|
6 app.config.assets.paths << root.join('assets', sub).to_s
9 # sprockets-rails 3 tracks down the calls to `font_path` and `image_path`
10 # and automatically precompiles the referenced assets.
11 unless Sprockets::Rails::VERSION.split('.', 2)[0].to_i >= 3
12 app.config.assets.precompile << %r(bootstrap/glyphicons-halflings-regular\.(?:eot|svg|ttf|woff2?)$)