Fix issue #22

Using michalczapko's solution from https://github.com/michalczapko/delayed_job_active_record/commit/5fb30dec76424cdf8b792e247a6e9a943e87f6d1