From ca4af48b7d810e9b968a28ac8786693bcbe8bca7 Mon Sep 17 00:00:00 2001 From: Noah Kantrowitz Date: Tue, 1 Nov 2011 17:45:00 -0700 Subject: [PATCH] Handle Rails adding methods to nil that it really shouldn't. --- lib/compass/configuration/inheritance.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/compass/configuration/inheritance.rb b/lib/compass/configuration/inheritance.rb index d7224ac5..d9a33862 100644 --- a/lib/compass/configuration/inheritance.rb +++ b/lib/compass/configuration/inheritance.rb @@ -137,6 +137,8 @@ module Compass def read_without_default(attribute) if set?(attribute) send("raw_#{attribute}") + elsif inherited_data.nil? + nil elsif inherited_data.respond_to?("#{attribute}_without_default") inherited_data.send("#{attribute}_without_default") elsif inherited_data.respond_to?(attribute)