Open dfens opened 5 years ago
As I see, I think UPDATE = DELETE + INSERT
The error is related to the behavior of rails, try this gem https://github.com/cyberxander90/replace_with_destroy or code from it with it, I was made to ensure that all intermediate models with paranoid
Note this is fixed intrinsically by #442
With this simple example
Execution of
Product.last.categories = [Category.first]
brings DELETE instead of UPDATE.what's the proper way to do it, did I miss something here or is it a flaw in this gem?