rails/activejob/lib/active_job
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
..
queue_adapters Avoid logging delayed job arguments if log_arguments set to false 2021-08-01 21:46:44 +01:00
serializers Raise error when serializing an anonymous class. 2021-10-13 11:55:23 -04:00
arguments.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
base.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
callbacks.rb Rails 6.2 is now Rails 7.0 2021-02-04 16:47:16 +00:00
configured_job.rb Allow ActiveJob::Base.set to configure job when using .perform_now 2021-10-12 13:53:38 -07:00
core.rb Allow ActiveJob::Base.set to configure job when using .perform_now 2021-10-12 13:53:38 -07:00
enqueuing.rb Allow ActiveJob::Base.set to configure job when using .perform_now 2021-10-12 13:53:38 -07:00
exceptions.rb retry_on parameter attempts now accepts :unlimited (#41761) 2021-07-28 18:32:19 -04:00
execution.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
gem_version.rb Preparing for 7.0.0.alpha2 release 2021-09-15 18:22:51 -04:00
instrumentation.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
log_subscriber.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
logging.rb Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
query_tags.rb Avoid using class_eval and just include a module 2021-08-17 22:16:06 +00:00
queue_adapter.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
queue_adapters.rb Sanitize and add missing docs on ActiveJob::QueueAdapters class. [ci skip] 2020-03-22 11:28:03 +01:00
queue_name.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
queue_priority.rb [Active Job] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
railtie.rb Handle NullObject instances in Active Job query tag 2021-08-24 15:07:20 +02:00
serializers.rb Add Range serializer for ActiveJob 2021-05-15 23:22:26 -04:00
test_case.rb [Active Job] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
test_helper.rb Added possibility to check on :priority in test helper methods 2021-07-15 07:46:21 +02:00
timezones.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
translation.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
version.rb [Active Job] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00