Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make Tree#[]= actually work with not_changed
  • Loading branch information
judofyr committed Sep 27, 2008
1 parent 24313b1 commit c7fa10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gash.rb
Expand Up @@ -183,7 +183,7 @@ def []=(key, value, not_changed = nil)
keys = key.split("/")
name = keys.pop
keys.inject(self) do |memo, i|
memo[i] = Tree.new(:parent => self) unless memo.include?(i)
memo[i, not_changed] = Tree.new(:parent => self) unless memo.include?(i)
memo[i, true]
end[name, not_changed] = value
else
Expand Down

0 comments on commit c7fa10a

Please sign in to comment.