# File lib/mongoid/document.rb, line 33 def ==(other) self.class == other.class && attributes["_id"] == other.attributes["_id"] end