Permalink
Browse files

added compass support to sass assets

  • Loading branch information...
1 parent e83b6b7 commit eb5ec8f9241053cc8527284e6be1d6f5f88d0bbc Sergey Kuleshov committed Apr 6, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/locomotive/carrierwave/asset.rb
@@ -76,6 +76,9 @@ def compile_js_css(*args)
options[:syntax] = :scss if options[:syntax].blank?
options[:load_paths] = [] if options[:load_paths].blank?
options[:load_paths] += ['.',File.dirname(current_path),File.expand_path(model.source.store_dir,Rails.public_path)]
+
+ options[:load_paths] += Compass.configuration.sass_load_paths
+
compiled = Sass::Engine.for_file( model.source.path, options ).render
elsif model.javascript?
options = Locomotive.config.coffeescript_process_options || {}

0 comments on commit eb5ec8f

Please sign in to comment.