Affects Version/s: None
Fix Version/s: 12_01_17
MongoDB does not allow dots in hash keys.
If the user is ignorant about this and tries to persist a Hash with a key containing a dot, there will be no warning or error.
Mongoid 2.0.1 just ignores the key - and leaves the user puzzled about what's going on.
IMHO it would be cleaner and more transparent if you'd set an error, similar to a failed validation, saying "Hash key can not contain dots" , and to refuse saving the Hash
field :ips, :type => Hash
f = Foo.new
f.ips[ '192.168.1.1' ] = 1