Caution when using before_destroy with model association
04-May-2017 3622
The other day, I was tasked with calling an external service when destroying a user. This kind of task is pretty straightforward in Rails, you call a method in a before_destroy callback on your model.
Caution when using before_destroy with model association #ruby #rubydeveloper #rubyonrails #Caution #using #before_destroy #model #association https://rubyonrails.ba/link/caution-when-using-before_destroy-with-model-association