Module: Bootstrap
- Defined in:
- lib/querobolsa-bootstrap-sass.rb
Defined Under Namespace
Classes: FrameworkNotFound
Class Method Summary collapse
-
.load! ⇒ Object
Inspired by Kaminari.
Class Method Details
.load! ⇒ Object
Inspired by Kaminari
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/querobolsa-bootstrap-sass.rb', line 5 def self.load! if compass? && asset_pipeline? register_compass_extension register_rails_engine elsif compass? # Only require compass extension if a standalone project require 'querobolsa-bootstrap-sass/compass_functions' register_compass_extension elsif asset_pipeline? require 'sass-rails' # See: https://github.com/thomas-mcdonald/bootstrap-sass/pull/4 register_rails_engine require 'querobolsa-bootstrap-sass/rails_functions' else raise Bootstrap::FrameworkNotFound, "bootstrap-sass requires either Rails > 3.1 or Compass, neither of which are loaded" end end |