-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
Example in this gist http://gist.github.com/506229.
Basically Mongoid should not try to convert an empty string to ObjectID but rather see it as meant to be nil. It's common that parameters like that come as empty strings into the controllers from from the forms in rails.
Error occured in this commit - http://github.com/durran/mongoid/commit/f7f524f6f3104e22b625a21b14192620cb05c513.