lib/mongoid/i18n/localized_field.rb in mongoid_i18n-0.4.0 vs lib/mongoid/i18n/localized_field.rb in mongoid_i18n-0.5.0

- old
+ new

@@ -29,10 +29,10 @@ object end # Assing new translation to translation table. def assign(object, value) - object.merge(locale => value) + (object || {}).merge(locale => value) end # Replace translation hash with new one. If :clear_empty_values is set to # pairs with empty values will be reject def replace(object, values) \ No newline at end of file