Context I recently spent a good chunk of time debugging a bug and in turn, did a lot of research on how Transactions and Touch work with callbacks like after_commit. Below is the debugging "story" I shared on X, if you like reading those, give it a s...

Markdown supported · ⌘↵ to post
Hello, I want to find a partner to make a video player software, please contact me at jj5372035gmail.c o m
Hello, I want to find a partner to make a video player software, please contact me at jj5372035gmail.c o m
Serguei Cambour
Thank you so much for sharing such useful tips. One point: you have a tiny typo in Comapny.find_by!(name:...), - it should be Company, I suppose :).
Also in the
Brake#do_brakemethod, I don't think the callputs "Brake id: #{self.brake.id}"to correct, - you are callingbrakeon the instance of theBrakeclass instead of just callingidmethod.