collectiveidea/delayed_job — pull request #750 by jmh (2014-12-06 20:07:52+00:00)
Title: Protect from monkey patched ActiveRecord::Base.find

I inherited a project that uses the obfuscate_id gem, which patches ActiveRecord's find method so it can obfuscate and deobfuscate ids transparently. When upgrading from delayed_job 4.0.3 to 4.0.4 we found that ids were being erroneously obfuscated when delayed_job tries to load the record.

This patch should help users of obfuscate_id and other gems that monkey around with ActiveRecord's find method.