X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Ftwbs%2Fbootstrap-sass%2Flib%2Fbootstrap-sass%2Fengine.rb;fp=vendor%2Ftwbs%2Fbootstrap-sass%2Flib%2Fbootstrap-sass%2Fengine.rb;h=dbc261a95a879133ad8bc51478223ab801069ec2;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/twbs/bootstrap-sass/lib/bootstrap-sass/engine.rb b/vendor/twbs/bootstrap-sass/lib/bootstrap-sass/engine.rb new file mode 100644 index 000000000..dbc261a95 --- /dev/null +++ b/vendor/twbs/bootstrap-sass/lib/bootstrap-sass/engine.rb @@ -0,0 +1,17 @@ +module Bootstrap + module Rails + class Engine < ::Rails::Engine + initializer 'bootstrap-sass.assets.precompile' do |app| + %w(stylesheets javascripts fonts images).each do |sub| + app.config.assets.paths << root.join('assets', sub).to_s + end + + # sprockets-rails 3 tracks down the calls to `font_path` and `image_path` + # and automatically precompiles the referenced assets. + unless Sprockets::Rails::VERSION.split('.', 2)[0].to_i >= 3 + app.config.assets.precompile << %r(bootstrap/glyphicons-halflings-regular\.(?:eot|svg|ttf|woff2?)$) + end + end + end + end +end