diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2015-09-27 15:22:47 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2015-09-27 15:22:47 +0300 |
commit | fdf1c797d4fb2e91d8645f02a5b96a85b37208fb (patch) | |
tree | c4b972401a0a48b094ea037360334dce5ce50391 /lib | |
parent | fcd8c36f30c039647bce8cce47fd749f12f8c4e8 (diff) |
sprockets-rails 3+ support
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bootstrap-sass/engine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bootstrap-sass/engine.rb b/lib/bootstrap-sass/engine.rb index d288080e..dbc261a9 100644 --- a/lib/bootstrap-sass/engine.rb +++ b/lib/bootstrap-sass/engine.rb @@ -8,7 +8,7 @@ module Bootstrap # 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') + 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 |