Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glex.spb@gmail.com>2018-08-06 21:25:34 +0300
committerGleb Mazovetskiy <glex.spb@gmail.com>2018-08-06 21:25:34 +0300
commit7c6056eebb7a9fd8cac7845ca31bf62a81627df2 (patch)
treec16dd7121544ab3b56ae29093871784767817484 /lib
parent5a2f627e569370399626f12678a92b6ab5aca4d4 (diff)
sass -> sassc
Fixes #159
Diffstat (limited to 'lib')
-rw-r--r--lib/bootstrap.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/bootstrap.rb b/lib/bootstrap.rb
index 0a78bb1..d1cf51e 100644
--- a/lib/bootstrap.rb
+++ b/lib/bootstrap.rb
@@ -11,9 +11,10 @@ module Bootstrap
register_hanami
elsif sprockets?
register_sprockets
+ elsif defined?(::Sass) && ::Sass.respond_to?(:load_paths)
+ # The deprecated `sass` gem:
+ ::Sass.load_paths << stylesheets_path
end
-
- configure_sass
end
# Paths
@@ -48,12 +49,6 @@ module Bootstrap
private
- def configure_sass
- require 'sass'
-
- ::Sass.load_paths << stylesheets_path
- end
-
def register_rails_engine
require 'bootstrap/engine'
end