Skip to content

Instantly share code, notes, and snippets.

@enriclluelles
Created November 11, 2011 13:51
Show Gist options
  • Save enriclluelles/1358049 to your computer and use it in GitHub Desktop.
Save enriclluelles/1358049 to your computer and use it in GitHub Desktop.
Stop Sass::Plugin from double compiling stuff
if Rails.configuration.try(:sass)
Rails.application.config.middleware.delete(Sass::Plugin::Rack)
Rails.configuration.sass.tap do |config|
config.load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets"
config.preferred_syntax = :sass
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment