Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
JSON Patch with Rails 5 and React (formapi.io)
1 point by nathan_f77 on Nov 19, 2017 | hide | past | favorite | 2 comments


One 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.


That'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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: