Caution when using before_destroy with model association

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 https://rubyonrails.ba/single/caution-when-using-before_destroy-with-model-association

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles