-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
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?