diff options
author | Alberto Almagro <albertoalmagro@gmail.com> | 2018-11-09 00:04:26 +0100 |
---|---|---|
committer | Alberto Almagro <albertoalmagro@gmail.com> | 2018-11-11 23:02:54 +0100 |
commit | 7c9e69dba1238441c9094983b334ee6d313e3820 (patch) | |
tree | 77eee7c081af8e32620303582e135f62f4f19d71 /activejob/lib/active_job/enqueuing.rb | |
parent | ef4f5ef69b5a50c897bbb17f6b36b729dff12e6c (diff) | |
download | rails-7c9e69dba1238441c9094983b334ee6d313e3820.tar.gz rails-7c9e69dba1238441c9094983b334ee6d313e3820.tar.bz2 rails-7c9e69dba1238441c9094983b334ee6d313e3820.zip |
Document missing supported types [ci skip]
This commit adds missing types to the supported types list, which
was extended in #30941
Diffstat (limited to 'activejob/lib/active_job/enqueuing.rb')
-rw-r--r-- | activejob/lib/active_job/enqueuing.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/activejob/lib/active_job/enqueuing.rb b/activejob/lib/active_job/enqueuing.rb index 53cb98fc71..b5b9f23c00 100644 --- a/activejob/lib/active_job/enqueuing.rb +++ b/activejob/lib/active_job/enqueuing.rb @@ -9,10 +9,12 @@ module ActiveJob # Includes the +perform_later+ method for job initialization. module ClassMethods - # Push a job onto the queue. The arguments must be legal JSON types - # (+string+, +int+, +float+, +nil+, +true+, +false+, +hash+ or +array+) or - # GlobalID::Identification instances. Arbitrary Ruby objects - # are not supported. + # 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 + # GlobalID::Identification instances, although this can be extended by adding + # custom serializers. # # Returns an instance of the job class queued with arguments available in # Job#arguments. |