Fix after_commit for rails 4