Module: Flatstrap
- Defined in:
- lib/flatstrap-sass.rb,
lib/flatstrap-sass/engine.rb
Defined Under Namespace
Modules: Rails 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 21 22 23 24 |
# File 'lib/flatstrap-sass.rb', line 5 def self.load! if compass? require 'flatstrap-sass/compass_functions' register_compass_extension elsif asset_pipeline? require 'flatstrap-sass/sass_functions' end if rails? require 'sass-rails' register_rails_engine end if !(rails? || compass?) raise Flatstrap::FrameworkNotFound, "flatstrap-sass requires either Rails > 3.1 or Compass, neither of which are loaded" end stylesheets = File.(File.join("..", 'vendor', 'assets', 'stylesheets')) ::Sass.load_paths << stylesheets end |