From 4e7e51e2c5491851f66c77abf3f15194f2f8fb8d Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sat, 20 Jun 2009 15:10:00 -0700 Subject: [PATCH] [Rails] Require compass during plugin loading to avoid the wrong version of haml getting loaded first. --- .../rails/templates/compass-install-rails.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/compass/app_integration/rails/templates/compass-install-rails.rb b/lib/compass/app_integration/rails/templates/compass-install-rails.rb index 778865a3..dcd8eb3a 100644 --- a/lib/compass/app_integration/rails/templates/compass-install-rails.rb +++ b/lib/compass/app_integration/rails/templates/compass-install-rails.rb @@ -67,6 +67,12 @@ end compass_command = "compass --rails -f #{css_framework} . --css-dir=#{css_dir} --sass-dir=#{sass_dir} " compass_command << plugin_require if plugin_require +# Require compass during plugin loading +file 'vendor/plugins/compass/init.rb', <<-CODE +# This is here to make sure that the right version of sass gets loaded (haml-edge) by the compass requires. +require 'compass' +CODE + # integrate it! run "haml --rails ." run compass_command