Skip to content

Commit

Permalink
Update guides/custom-enumerator.md
Browse files Browse the repository at this point in the history
Co-authored-by: Sander Verdonschot <[email protected]>
  • Loading branch information
sambostock and Mangara authored Jul 6, 2022
1 parent 33112f0 commit 4b0ba59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/custom-enumerator.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ To ensure cursors are not corrupted, they should only be composed of classes Rub
- `FalseClass` (`false`)
- `NilClass` (`nil`)

For example, if a `Time` object is given as a cursor (perhaps we are iterating over API resources by creation time), it will be serialized by the job adapter, which typically calls `to_s`, meaning upon resumption the job will unexpectedly get receive a String as cursor instead of the original `Time` object.
For example, if a `Time` object is given as a cursor (perhaps we are iterating over API resources by creation time), it will be serialized by the job adapter, which typically calls `to_s`, meaning upon resumption the job will unexpectedly receive a String as cursor instead of the original `Time` object.

```ruby
require "time"
Expand Down

0 comments on commit 4b0ba59

Please sign in to comment.