Returns:
8 9 10
# File 'lib/mongo_mapper/plugins/equality.rb', line 8 def eql?(other) other.is_a?(self.class) && _id == other._id end
13 14 15
# File 'lib/mongo_mapper/plugins/equality.rb', line 13 def hash _id.hash end