mongoid/mongoid — Issue #1476: After updating a object new objects are inheriting one of the first objects values
Author: incorvia
Created: 2011-12-04 18:42:16+00:00
State: open

I made a gist of the problem here:

https://gist.github.com/1430906

I create a new object like:
a = Root.new

Then I save it.. and run a method on, in particular the method '.upvote' from the mongoid_vote gem...

Then when I try and create new instances like
b = Root.new
some of the values from a are persisting.....

I'm not sure fi this is a bug with Mongoid or something that the mongoid_vote gem is doing.. but I don't know think its doing anything that would alter how new objects come out... Let me know if I can get more information but the gist has a complete rundown...