Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make AR::Base#touch fire the after_commit and after_rollback callbacks #12031
class Product < ActiveRecord::Base after_commit :expire_cache def expire_cache puts "cache expired" end product.touch
to output "cache expired", but it doesn't, and it used to in Rails 3.0. This PR brings back that functionality by making touches call
We relied on
Thanks for any feedback you can give me!