Fixing 'metadata not defined' error on unsaved embedded entries using current version of gem 'mongoid'.