We have some fields that we assign but do not declare. By including Mongoid::Attributes::Dynamic, we tell mongoid to allow us to use fields that are not declared on the model.