mongoid-embedded-errors 4.0.0
Embedded documents in Mongoid can be really useful. However, when one of those embedded documents is invalid, Mongoid does not say which validation has failed. Instead of just saying that an embedded document is invalid, this gem modifies Mongoid behavior so it explicitly provides validation errors on a per-field basis for embedded documents, the same way it does for parent documents.
Gemfile:
=
安装:
=
Runtime 依赖 (1):
mongoid
>= 7.0, < 9.0.0
Development 依赖 (2):
rubocop
~> 0.92
rubocop-rspec
~> 1.43