Created
September 23, 2008 17:38
-
-
Save jackdempsey/12356 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/git/src/merb-more/merb-haml (master)$ gd | |
diff --git a/merb-haml/lib/merb-haml.rb b/merb-haml/lib/merb-haml.rb | |
index 88184a6..da89952 100644 | |
--- a/merb-haml/lib/merb-haml.rb | |
+++ b/merb-haml/lib/merb-haml.rb | |
@@ -5,7 +5,7 @@ if defined?(Merb::Plugins) | |
Merb::Plugins.add_rakefiles(File.join(File.dirname(__FILE__) / "merb-haml" / "merbtasks")) | |
Merb::BootLoader.after_app_loads do | |
- if File.directory?(Merb::Config[:sass][:template_location] || Merb.dir_for(:stylesheet) / "sass") | |
+ if File.directory?((Merb::Config[:sass] && Merb::Config[:sass][:template_location]) || Merb.dir_for(:stylesheet) / "sass") | |
require "sass/plugin" | |
Sass::Plugin.options = Merb::Config[:sass] if Merb::Config[:sass] | |
end | |
~/git/src/merb-more/merb-haml (master)$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment