I have a collection that contains both _id and id. When I search by id field in mongo client, everything is fine. When I look at the mongomapper model, for example: Product.find_by_id (6) or Product.where (: id => 6), it returns an empty Plucky object, and I see that it is looking for the _id field instead of id.
As I understand it, mongomapper always uses _id, regardless of whether you want to find something by id.
Is there any work for this, or am I doing it wrong?
source
share