active_record-events icon indicating copy to clipboard operation
active_record-events copied to clipboard

Mapping for validation errors

Open mpkhr opened this issue 1 year ago • 0 comments

Hi guys,

small idea to improve the gem: It would be great to have a mapping for validation errors, as to the user those fields remain a boolean.

Use case is: there is some business logic behind a field. If the user runs in such validation errors, the validation errors shouldn't be added to :completed_at, but rather to :completed, which is what is then used in the forms.

Can all be done manually of course, but I think this would be a nice addition to connect the pieces between forms, validations and the "behind the scenes" timestamp field.

Thanks!

mpkhr avatar Jan 22 '24 16:01 mpkhr