Skip to content

Commit

Permalink
[Rails] Require compass during plugin loading to avoid the wrong vers…
Browse files Browse the repository at this point in the history
…ion of haml getting loaded first.
  • Loading branch information
chriseppstein committed Jun 20, 2009
1 parent 8c9ebce commit 4e7e51e
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -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
Expand Down

0 comments on commit 4e7e51e

Please sign in to comment.