From 44a13d152162883e808ba5229c085423e3fa6fad Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Tue, 24 Dec 2013 16:26:24 +0100 Subject: Backport asset helper detection --- vendor/assets/stylesheets/bootstrap/_variables.scss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vendor/assets/stylesheets/bootstrap/_variables.scss b/vendor/assets/stylesheets/bootstrap/_variables.scss index 5b477e9d..519aaaac 100644 --- a/vendor/assets/stylesheets/bootstrap/_variables.scss +++ b/vendor/assets/stylesheets/bootstrap/_variables.scss @@ -1,5 +1,7 @@ -// bootstrap specific variable. set to false if not using ruby + asset pipeline / compass. -$bootstrap-sass-asset-helper: true !default; +// a flag to toggle asset pipeline / compass integration +// defaults to true if twbs-font-path function is present (no function => twbs-font-path('') parsed as string == right side) +// in Sass 3.3 this can be improved with: function-exists(twbs-font-path) +$bootstrap-sass-asset-helper: (twbs-font-path('') != unquote("twbs-font-path('')")) !default; // // Variables // -------------------------------------------------- -- cgit v1.2.3