make it compatible with final Rails 4.2 - collectiveidea/delayed_job#758