I was doing some work with ActiveRecord transactions and I noticed a strange behavior where some of my after_commit callbacks (yes, unfortunately I had to use callbacks) were not being called.
Recently, I needed to validate some attributes in a model that were divisible by 0.5. My initial approach was to write a method that would perform the validations and run it with validate: