Module: Bootstrap::IASD

Defined in:
lib/iasd-bootstrap-sass.rb,
lib/iasd-bootstrap-sass/version.rb

Constant Summary collapse

VERSION =
"1.7.11"

Class Method Summary collapse

Class Method Details

.load!Object



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/iasd-bootstrap-sass.rb', line 9

def self.load!

  if compass?
    #require 'bootstrap-sass/compass_functions'
    register_compass_extension
  elsif asset_pipeline?
    #TODO test this
    #require 'bootstrap-sass/sass_functions'
  end

  if !(compass?)
    raise Bootstrap::FrameworkNotFound, "iasd-bootstrap-sass requires either Rails > 3.1 or Compass, neither of which are loaded"
  end

  require 'bootstrap-sass'
  require 'rgbapng'
  # require 'font-awesome-sass-rails'

  stylesheets = File.expand_path(File.join("..", 'stylesheets'))
  ::Sass.load_paths << stylesheets
end