Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass a String to ActiveJob (rather than a SafeBuffer)
This provides compatibility with Sidekiq as an ActiveJob adapter (because [Sidekiq only allows native JSON types][1] to be passed as job arguments). All credit goes to [@jdelStrother] who [suggested this solution][2]. Fixes [hotwired#522] and [hotwired#535] [1]: https://github.com/sidekiq/sidekiq/wiki/Best-Practices#1-make-your-job-parameters-small-and-simple [2]: hotwired#535 (comment) [@jdelStrother]: https://github.com/jdelStrother [hotwired#522]: hotwired#522 [hotwired#535]: hotwired#535
- Loading branch information