rails--rails/activejob/test
Veerpal Brar 0f259e702d Raise error when serializing an anonymous class.
The ModuleSerializer does not support serializing anonymous classes
because when we try to deserialize the anonymous class, it wouldn't
know which class to use (since class name is nil).

For this reason, ModuleSerialzier now raises an error if the class
name is nil. Previously, ModuleSerializer would raise an `undefined
method `constantize' for nil:NilClass` error during deserialization.
It's not clear why the deserialization failed from the error.

In this commit, we raise an explicit error when trying to serialize
an anonymous class indicating this behaviour is not supported.
2021-10-13 11:55:23 -04:00
..
adapters
cases Raise error when serializing an anonymous class. 2021-10-13 11:55:23 -04:00
integration Wrap evaluation of db/seeds.rb with the executor 2020-11-18 16:26:20 -06:00
jobs Allow `ActiveJob::Base.set` to configure job when using `.perform_now` 2021-10-12 13:53:38 -07:00
models
support Remove spring as a default installation option (#42997) 2021-08-12 12:31:18 +02:00
helper.rb Return `false` when enqueuing a job is aborted 2020-10-30 00:25:31 +00:00