mirror of https://github.com/rails/rails
Add Range to list of supported arguments for jobs
This commit is contained in:
parent
0e5b70a1b6
commit
61fb58f6a7
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
#
|
||||
|
|
|
@ -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`
|
||||
|
||||
|
|
Loading…
Reference in New Issue