lib/mongoid.rb in mongoid-0.5.0 vs lib/mongoid.rb in mongoid-0.5.1

- old
+ new

@@ -44,10 +44,11 @@ # Raised when the database connection has not been set up. class NoConnectionError < RuntimeError; end # Raised when an association is defined on the class, but the - # attribute in the hash is not an Array or Hash. + # attribute in the hash is not an Array or Hash, or when + # checking equality on objects of different types. class TypeMismatchError < RuntimeError; end # Raised when an association is defined that is not valid. Must # be belongs_to, has_many, has_one class InvalidAssociationError < RuntimeError; end