Permalink
Browse files

Only set a :cache_store for Sass::Engine if there's a cache

  • Loading branch information...
1 parent 142733b commit 4401b1f44157b5cd01c1f96a89f811c3bccedc7c @petebrowne committed Mar 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sprockets/sass_template.rb
@@ -26,7 +26,7 @@ def syntax
def evaluate(context, locals, &block)
# Use custom importer that knows about Sprockets Caching
- cache_store = SassCacheStore.new(context.environment)
+ cache_store = context.environment.cache && SassCacheStore.new(context.environment)
options = {
:filename => eval_file,

0 comments on commit 4401b1f

Please sign in to comment.