Add Range to list of supported arguments for jobs

This commit is contained in:
Andrew White 2021-05-16 08:44:59 +01:00
parent 0e5b70a1b6
commit 61fb58f6a7
No known key found for this signature in database
GPG Key ID: 7E83729F16B086CF
3 changed files with 4 additions and 3 deletions

View File

@ -17,8 +17,8 @@ module ActiveJob
# currently support String, Integer, Float, NilClass, TrueClass, FalseClass,
# BigDecimal, Symbol, Date, Time, DateTime, ActiveSupport::TimeWithZone,
# ActiveSupport::Duration, Hash, ActiveSupport::HashWithIndifferentAccess,
# Array or GlobalID::Identification instances, although this can be extended
# by adding custom serializers.
# Array, Range or GlobalID::Identification instances, although this can be
# extended by adding custom serializers.
# Raised if you set the key for a Hash something else than a string or
# a symbol. Also raised when trying to serialize an object which can't be
# identified with a GlobalID - such as an unpersisted Active Record model.

View File

@ -17,7 +17,7 @@ module ActiveJob
# Push a job onto the queue. By default the arguments must be either String,
# Integer, Float, NilClass, TrueClass, FalseClass, BigDecimal, Symbol, Date,
# Time, DateTime, ActiveSupport::TimeWithZone, ActiveSupport::Duration,
# Hash, ActiveSupport::HashWithIndifferentAccess, Array or
# Hash, ActiveSupport::HashWithIndifferentAccess, Array, Range or
# GlobalID::Identification instances, although this can be extended by adding
# custom serializers.
#

View File

@ -387,6 +387,7 @@ ActiveJob supports the following types of arguments by default:
- `Hash` (Keys should be of `String` or `Symbol` type)
- `ActiveSupport::HashWithIndifferentAccess`
- `Array`
- `Range`
- `Module`
- `Class`