mongoid / origin

A Ruby DSL for building MongoDB queries
http://mongoid.org/en/origin/index.html
MIT License
62 stars 29 forks source link

Serialize deeply nested selector correctly #44

Closed flexoid closed 11 years ago

flexoid commented 11 years ago

For example: {'$and' => [{'$or' => [{_id: '50412b6b555389e152000002'}]}]}

Before we will always get nothing because '_id' serialized as string. Now it is serialized into ObjectId regardless of the level of nesting.

travisbot commented 11 years ago

This pull request fails (merged 4202ee5a into 3de44fb9).

travisbot commented 11 years ago

This pull request passes (merged 4202ee5a into 3de44fb9).

durran commented 11 years ago

Thanks!