diff --git a/lib/bourbon.rb b/lib/bourbon.rb index f9e99d2ab..eb17d892f 100644 --- a/lib/bourbon.rb +++ b/lib/bourbon.rb @@ -1,4 +1,12 @@ require "sass" require "bourbon/generator" -Sass.load_paths << File.expand_path("../../core", __FILE__) +module Bourbon + if defined?(Rails) && defined?(Rails::Engine) + class Engine < ::Rails::Engine + config.assets.paths << File.expand_path("../../core", __FILE__) + end + else + Sass.load_paths << File.expand_path("../../core", __FILE__) + end +end