lib/convection/model/template.rb in convection-1.0.0.pre.beta.8 vs lib/convection/model/template.rb in convection-1.0.0.pre.beta.9

- old
+ new

@@ -184,10 +184,10 @@ def properties(memo = {}, path = '') keys.each do |key| if self[key].is_a?(Hash) || self[key].is_a?(Array) new_path = "#{path}#{path.empty? ? '' : '.'}#{key}" resource_type = self['Type'] - new_path = "#{new_path}.#{resource_type}" if resource_type + new_path = "#{new_path}.#{resource_type}" if resource_type && !resource_type.empty? self[key].properties(memo, new_path) else memo["#{path}.#{key}"] = self[key] end end