Inspired by Kaminari
# File lib/bootstrap-sass.rb, line 5 def self.load! if compass? require 'bootstrap-sass/compass_functions' register_compass_extension elsif asset_pipeline? require 'bootstrap-sass/sass_functions' end if rails? require 'sass-rails' register_rails_engine end unless rails? || compass? raise Bootstrap::FrameworkNotFound, 'bootstrap-sass requires either Rails > 3.1 or Compass, neither of which are loaded' end bs_stylesheets = File.join(gem_path, 'vendor', 'assets', 'stylesheets') ::Sass.load_paths << bs_stylesheets if ::Sass::Script::Number.precision < 10 # see https://github.com/thomas-mcdonald/bootstrap-sass/issues/409 ::Sass::Script::Number.precision = 10 end end
Generated with the Darkfish Rdoc Generator 2.