Give a better error if Sass::Script::Functions.declare does not exist.

Closes GH-365.
This commit is contained in:
Chris Eppstein 2011-05-01 08:18:33 -07:00
parent 8527f5b91f
commit 04a288ae8f

View File

@ -1,3 +1,7 @@
unless Sass::Script::Functions.methods.grep(/\Adeclare\Z/).any?
raise LoadError, "It looks like you've got an incompatible version of Sass. This often happens when you have an old haml gem installed. Please upgrade Haml to v3.1 or above."
end
module Compass::SassExtensions module Compass::SassExtensions
end end