mongoid/mongoid — pull request #1517 by tiagogodinho (2011-12-21 14:01:23+00:00)
Title: Changing Document#to_key for work with stub_model in rspec-rails.

The problem was discussed in #1510.