validations
It is important to note that by default, Mongoid will validate the children of any relation that are loaded into memory. The relations that this applies to are:
- embeds_many
- embeds_one
- has_many
- has_one
- has_and_belongs_to_many
If you do not want this behaviour, you may turn it off when defining the relation.
class Person include Mongoid::Document embeds_many :addresses, validate: false has_many :posts, validate: false end