thoughtbot/bourbon

View on GitHub
lib/bourbon.rb

Summary

Maintainability
A
0 mins
Test Coverage
require "bourbon/generator"

module Bourbon
  if defined?(Rails) && defined?(Rails::Engine)
    class Engine < ::Rails::Engine
      config.assets.paths << File.expand_path("../core", __dir__)
    end
  else
    begin
      require "sass"
      Sass.load_paths << File.expand_path("../core", __dir__)
    rescue LoadError
    end
  end
end