Skip to content

Commit

Permalink
Require Sass only when it's necessary
Browse files Browse the repository at this point in the history
This will fix the problem on using sass from the command line in the
environment that `sass` gem is not available.
  • Loading branch information
sikachu committed Oct 12, 2012
1 parent 1c51c2f commit 1cb0835
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/bourbon/sass_extensions.rb
@@ -1,6 +1,8 @@
module Bourbon::SassExtensions
end

require "sass"
unless defined?(Sass)
require 'sass'
end

require File.join(File.dirname(__FILE__), "/sass_extensions/functions")
require File.join(File.dirname(__FILE__), '/sass_extensions/functions')

0 comments on commit 1cb0835

Please sign in to comment.