-
Type: Bug
-
Resolution: Cannot Reproduce
-
Priority: Critical - P2
-
Affects Version/s: 5.1.0, 5.1.1
-
Component/s: None
-
None
-
Environment:Rails 4.2.5; mongo 3.2.1
I have a model named Booking; in the first request I save a new booking (booking.save!); in the following request (i.e.: index or show) doing Booking.all.to_a returns an array of BSON::Document objects which is obviously wrong. If I restart the Rails server, Booking.all.to_a returns an array of Booking object which is the right thing. Same happens with #where and #each. I tried to debug it but I couldn't find the cause. Any hint is well appreciated.