Skip to content

Commit

Permalink
Use guides, not edge guides
Browse files Browse the repository at this point in the history
  • Loading branch information
sambostock committed Nov 9, 2022
1 parent b08eff9 commit 3b989f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/custom-enumerator.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Code that is written after the `yield` in a custom enumerator is not guaranteed

### Cursor types

Cursors should be of a [type that Active Job can serialize](https://edgeguides.rubyonrails.org/active_job_basics.html#supported-types-for-arguments).
Cursors should be of a [type that Active Job can serialize](https://guides.rubyonrails.org/active_job_basics.html#supported-types-for-arguments).

For example, consider:

Expand Down Expand Up @@ -128,7 +128,7 @@ deserialization, the cursor would be corrupted as `:abc`, rather than

To avoid this, job authors should take care to ensure that their cursor is
serializable by Active Job. This can be done in a couple ways, such as:
- [adding GlobalID support to the cursor class](https://edgeguides.rubyonrails.org/active_job_basics.html#globalid)
- [adding GlobalID support to the cursor class](https://guides.rubyonrails.org/active_job_basics.html#globalid)
- [implementing a custom Active Job argument serializer for the cursor class](https://guides.rubyonrails.org/active_job_basics.html#serializers)
- handling (de)serialization in the job/enumerator itself
```ruby
Expand Down

0 comments on commit 3b989f9

Please sign in to comment.