lib/hirb/formatter.rb in hirb-0.2.4 vs lib/hirb/formatter.rb in hirb-0.2.5
- old
+ new
@@ -173,10 +173,10 @@
# ancestors to the most recent ones.
def klass_config(output_class)
@klass_config[output_class] ||= begin
output_ancestors_with_config = output_class.ancestors.map {|e| e.to_s}.select {|e| @config.has_key?(e)}
@klass_config[output_class] = output_ancestors_with_config.reverse.inject({}) {|h, klass|
- (klass == output_class.to_s || @config[klass][:ancestor]) ? h.update(@config[klass]) : h
+ (klass == output_class.to_s || @config[klass][:ancestor]) ? Util.recursive_hash_merge(h, @config[klass]) : h
}
end
end
def reset_klass_config
\ No newline at end of file