Environment detection helpers
# File lib/bootstrap-sass.rb, line 36 def asset_pipeline? defined?(::Sprockets) end
# File lib/bootstrap-sass.rb, line 31 def assets_path @assets_path ||= File.join gem_path, 'assets' end
# File lib/bootstrap-sass.rb, line 40 def compass? defined?(::Compass) end
# File lib/bootstrap-sass.rb, line 23 def fonts_path File.join assets_path, 'fonts' end
Paths
# File lib/bootstrap-sass.rb, line 15 def gem_path @gem_path ||= File.expand_path '..', File.dirname(__FILE__) end
# File lib/bootstrap-sass.rb, line 27 def javascripts_path File.join assets_path, 'javascripts' end
Inspired by Kaminari
# File lib/bootstrap-sass.rb, line 4 def load! register_compass_extension if compass? if rails? register_rails_engine end configure_sass end
Generated with the Darkfish Rdoc Generator 2.