mongoid/mongoid — Issue #1644: Model.find('jkfjdkslfas') results changed on upgrade to 2.4.2
Author: bdmac
Created: 2012-01-26 00:48:20+00:00
State: open

In Mongoid 2.3.4:

```
irb(main):001:0> Place.find('jfdkaslfjksdalfsl')
Mongoid::Errors::DocumentNotFound: Document not found for class Place with id(s) jfdkaslfjksdalfsl.
```

In Mongoid 2.4.2:

```
ruby-1.9.2-p290 :043 > Place.find('jfkdalsfjdsa')
BSON::InvalidObjectId: illegal ObjectId format: jfkdalsfjdsa
```

Considering users could visit /places/whatever_they_want I would expect Mongoid to continue to throw DocumentNotFound so it bubbles up as a 404.

Was this change intentional?