lib/nstore.rb in nstore-0.2.0 vs lib/nstore.rb in nstore-0.2.1

- old
+ new

@@ -86,10 +86,10 @@ def write_nstore_attribute(attribute, keys, value) send("#{attribute}=", {}) if send(attribute).nil? position = send(attribute) keys[0..-2].each do |key| - position[key] = {} unless position[key].is_a?(Hash) + position[key] = {} unless position[key].is_a? Hash position = position[key] end position[keys[-1]] = value end