From e4681e267203a136882004da6dc78a9156681e29 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Mon, 30 Jan 2012 19:59:31 -0500 Subject: [PATCH] fixed weird bug with data inheritance --- lib/compass/configuration/inheritance.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/compass/configuration/inheritance.rb b/lib/compass/configuration/inheritance.rb index 40c6f7dc..bbc62253 100644 --- a/lib/compass/configuration/inheritance.rb +++ b/lib/compass/configuration/inheritance.rb @@ -129,7 +129,11 @@ module Compass if #{attr}_set? # if sprite_load_paths_set? @#{attr} # Array(@#{attr}) else # else - value = Array(read(#{attr.inspect})) # value = Array(read(:sprite_load_paths)) + value = if inherited_data # value = Array(read(:sprite_load_paths)) + Array(inherited_data.#{attr}) + else + Array(read(#{attr.inspect})) + end value -= Array(@removed_from_#{attr}) # value -= Array(@removed_from_sprite_load_paths) Array(@added_to_#{attr}) + value # Array(@added_to_sprite_load_paths) + value end # end