Permalink
Browse files

Merge pull request #161 from ysbaddaden/master

Adding stylesheets path to Sass.load_paths for non Rails apps
  • Loading branch information...
2 parents fc389ff + b7abce3 commit e30ab9bfa77c68b0e80200fe86383f2b13e09d3a Phil LaPier committed Feb 1, 2013
Showing with 6 additions and 4 deletions.
  1. +6 −4 lib/bourbon.rb
View
@@ -4,6 +4,10 @@
require "bourbon/generator"
+unless defined?(Sass)
+ require 'sass'
+end
+
module Bourbon
if defined?(Rails) && defined?(Rails::Engine)
class Engine < ::Rails::Engine
@@ -17,9 +21,7 @@ class Railtie < ::Rails::Railtie
end
end
end
+ else
+ Sass.load_paths << File.expand_path("../../app/assets/stylesheets", __FILE__)
end
end
-
-unless defined?(Sass)
- require 'sass'
-end

0 comments on commit e30ab9b

Please sign in to comment.