Fixed undefined method on after_commit callback