Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix tilt autoloading warning

  • Loading branch information...
commit 111675250a1ae7baf78c3b58b43d613c4bf6572c 1 parent 2ad18c4
@josh josh authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/sprockets/sass_template.rb
View
5 lib/sprockets/sass_template.rb
@@ -15,7 +15,10 @@ def self.engine_initialized?
end
def initialize_engine
- require_template_library 'sass'
+ # Double check constant to avoid tilt warning
+ unless defined? ::Sass
+ require_template_library 'sass'
+ end
# Install custom functions. It'd be great if this didn't need to
# be installed globally, but could be passed into Engine as an
Please sign in to comment.
Something went wrong with that request. Please try again.