Allows you to enqueue version creation/deletion as a background job to avoid having business logic blocked by changelog writing.
First you'll need to setup a job for processing versions:
# The class MUST be named this
class VersionJob < ApplicationJob
  queue_as :default
  # This wires up the background job
  include PaperTrail::Background::Job
endRun this command in your project:
$ bundle add paper_trail-background
Or install it yourself with:
$ gem install paper_trail-background
- Read the Code of Conduct
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
- Support other job types
- Allow for configuring the job class name