2 ms·
JSON Patch with Rails 5 and React
- al2o3cr 9y agoOne thing to be aware of: applying the patch in `before_save` means validations won't see the changes. Might want to either move that to `before_validation` or apply the changes directly in the `update` action.
- nathan_f77 9y agoThat's a good point, thanks! I also wasn't sure about the before_save. I'll probably change the = method to apply the changes immediately.