Repository navigation
Releases: bdurand/soft_validator
Releases · bdurand/soft_validator
Release list
v1.0.1
Fixed
- Soft validation errors are now removed by object identity instead of by matching attribute, type, and options. Previously a soft validation could delete errors added by hard validations of the same type on the same attribute, and a soft error identical to an existing hard error would be left on the record as a duplicate.
- Setting
enforced: falseon a soft validation now overrides the globalSoftValidator.enforcedsetting. - The
:allow_nil,:allow_blank,:strict, and:prependoptions can now be used on a soft validation without raising an unknown validator error. - Wrapped validators with falsy options (e.g.
soft: {presence: false}) are now skipped, matching the behavior ofvalidates. - The
:enforcedoption is now evaluated once per attribute validation instead of once per wrapped validator, so aProcvalue (e.g. a feature flag) cannot produce inconsistent enforcement within a single validation pass.
Full Changelog: v1.0.0...v1.0.1