delayed_jobs fixes for rails 4