2 Matching Annotations
- Feb 2021
-
github.com github.com
-
ActiveInteraction also supports merging errors. This is useful if you want to delegate validation to some other object. For example, if you have an interaction that updates a record, you might want that record to validate itself. By using the #merge! helper on errors, you can do exactly that.
-
Inside #execute, we merge errors. This is a convenient way to move errors from one object to another.
-