lib/translations/translation.rb in translations-0.3.0 vs lib/translations/translation.rb in translations-0.3.1

- old
+ new

@@ -62,13 +62,15 @@ def remove key parts = key.split(".") last_part = parts.pop parent = parts.inject(@translations) do |translation, key| - translation[key] + if translation.is_a?(Hash) + translation[key] + end end - parent.delete last_part + parent.delete(last_part) if parent.is_a?(Hash) end def move from, to self[to] = self[from]