fractaledmind / acidic_job

Elegant, resilient, durable workflows for Rails apps
https://fractaledmind.github.io/acidic_job/
MIT License
492 stars 10 forks source link

Fix deprecation warning for serializing attributes #77

Closed fractaledmind closed 1 year ago

fractaledmind commented 1 year ago

DEPRECATION WARNING: Passing the coder as positional argument is deprecated and will be removed in Rails 7.2.

Please pass the coder as a keyword argument:

  serialize :returning_to, coder: AcidicJob::Serializer
 (called from block (2 levels) in <class:Run> at .../gems/acidic_job-0.8.5/lib/acidic_job/run.rb:50)
DEPRECATION WARNING: Passing the coder as positional argument is deprecated and will be removed in Rails 7.2.

Please pass the coder as a keyword argument:

  serialize :workflow, coder: AcidicJob::Serializer
 (called from block (2 levels) in <class:Run> at .../gems/3.2.0/gems/acidic_job-0.8.5/lib/acidic_job/run.rb:145)
DEPRECATION WARNING: Passing the coder as positional argument is deprecated and will be removed in Rails 7.2.

Please pass the coder as a keyword argument:

  serialize :error_object, coder: AcidicJob::Serializer
 (called from block (2 levels) in <class:Run> at .../gems/3.2.0/gems/acidic_job-0.8.5/lib/acidic_job/run.rb:146)
DEPRECATION WARNING: Passing the coder as positional argument is deprecated and will be removed in Rails 7.2.

Please pass the coder as a keyword argument:

  serialize :serialized_job, coder: JSON
 (called from block (2 levels) in <class:Run> at .../gems/3.2.0/gems/acidic_job-0.8.5/lib/acidic_job/run.rb:191)