mongoid/mongoid — pull request #3730 by gkopylov (2014-07-10 16:07:17+00:00)
Title: Add option to turn off raising missing attribute error

Sometimes it no needs to raise MissingAttributeError. For example, when you have old documents with missing some special attributes and you would not want to update them. To avoid this you can just set to 'false' option 'raise_missing_attribute_error' in config/mongoid.yml.