aboutsummaryrefslogtreecommitdiffstats
path: root/test/adapters/que.rb
diff options
context:
space:
mode:
authorTim Riley <tim@openmonkey.com>2014-07-29 09:58:13 +1000
committerTim Riley <tim@openmonkey.com>2014-07-29 09:58:13 +1000
commit21730dea6b5e5bb4bdb3420ae31238ee94925a0a (patch)
treeac3f4a9197be8df5b17a4e2014720b50e288d463 /test/adapters/que.rb
parent2c31b1832f440d0eb7c5db51d11630e885d0a824 (diff)
downloadrails-21730dea6b5e5bb4bdb3420ae31238ee94925a0a.tar.gz
rails-21730dea6b5e5bb4bdb3420ae31238ee94925a0a.tar.bz2
rails-21730dea6b5e5bb4bdb3420ae31238ee94925a0a.zip
Fix database serialization of job class names with Que
When passing a class constant as a job argument, Que’s stored procedures serialize it to JSON in the database as `{}`. This means that when the job (the ActiveJob “wrapper”) is deserialized from the database, it can’t find the original job class to run again. Changing the Que adapter to serialize the job class as a string fixes this behaviour. This change makes the adapter consistent with other adapters too (which constantize a class string in their JobWrapper#perform methods.
Diffstat (limited to 'test/adapters/que.rb')
0 files changed, 0 insertions, 0 deletions