fbebeabd6d
This commit allows ActiveJob to serialize classes and modules without a custom serializer. This allows for workflows like: ``` class EmailJob < ApplicationJob queue_as :default def perform(template_class, *arguments) template_class.new(*arguments).send! end end module Email class FooTemplate ... end class BarTemplate ... end end EmailJob.perform_later(Email::FooTemplate, ...) EmailJob.perform_later(Email::BarTemplate, ...) ``` Currently this is only achieveable through a custom serializer or through constantizing in each instance.
19 lines
526 B
Markdown
19 lines
526 B
Markdown
* Allow `Class` and `Module` instances to be serialized.
|
|
|
|
*Kevin Deisz*
|
|
|
|
* Log potential matches in `assert_enqueued_with` and `assert_performed_with`
|
|
|
|
*Gareth du Plooy*
|
|
|
|
* Add `at` argument to the `perform_enqueued_jobs` test helper.
|
|
|
|
*John Crepezzi*, *Eileen Uchitelle*
|
|
|
|
* `assert_enqueued_with` and `assert_performed_with` can now test jobs with relative delay.
|
|
|
|
*Vlado Cingel*
|
|
|
|
|
|
Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/activejob/CHANGELOG.md) for previous changes.
|