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 778865a3ed..dcd8eb3a79 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 @@ 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