Backport rails callback runner to version 2 for rails4