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/arguments.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/arguments.rb')
-rw-r--r-- | activejob/lib/active_job/arguments.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/activejob/lib/active_job/arguments.rb b/activejob/lib/active_job/arguments.rb index a86a82c6e3..38d5d0214e 100644 --- a/activejob/lib/active_job/arguments.rb +++ b/activejob/lib/active_job/arguments.rb @@ -14,11 +14,14 @@ module ActiveJob end # Raised when an unsupported argument type is set as a job argument. We - # currently support NilClass, Integer, Float, String, TrueClass, FalseClass, - # BigDecimal, and objects that can be represented as GlobalIDs (ex: Active Record). + # 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. # 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 Global ID - such as an unpersisted Active Record model. + # identified with a GlobalID - such as an unpersisted Active Record model. class SerializationError < ArgumentError; end module Arguments |