aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-10-08 08:13:11 +1030
committerMatthew Draper <matthew@trebex.net>2016-10-08 08:13:11 +1030
commitcb0452e9a50e97f8ab2100f6226fbdd47a970a34 (patch)
tree611edac41561efabba8cb12d6839fa3f3033fc9a /activejob/lib
parentfc0b62597f9c34bd028fd91457b8865eea42cc2d (diff)
downloadrails-cb0452e9a50e97f8ab2100f6226fbdd47a970a34.tar.gz
rails-cb0452e9a50e97f8ab2100f6226fbdd47a970a34.tar.bz2
rails-cb0452e9a50e97f8ab2100f6226fbdd47a970a34.zip
Fixnum and Bignum are deprecated in Ruby trunk
https://bugs.ruby-lang.org/issues/12739
Diffstat (limited to 'activejob/lib')
-rw-r--r--activejob/lib/active_job/arguments.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activejob/lib/active_job/arguments.rb b/activejob/lib/active_job/arguments.rb
index 41ce5f863b..23e237c1b7 100644
--- a/activejob/lib/active_job/arguments.rb
+++ b/activejob/lib/active_job/arguments.rb
@@ -34,8 +34,8 @@ module ActiveJob
module Arguments
extend self
# :nodoc:
- # Calls #uniq since Integer, Fixnum, and Bignum are all the same class on Ruby 2.4+
- TYPE_WHITELIST = [ NilClass, String, Integer, Fixnum, Bignum, Float, BigDecimal, TrueClass, FalseClass ].uniq
+ TYPE_WHITELIST = [ NilClass, String, Integer, Float, BigDecimal, TrueClass, FalseClass ]
+ TYPE_WHITELIST.push(Fixnum, Bignum) unless 1.class == Integer
# Serializes a set of arguments. Whitelisted types are returned
# as-is. Arrays/Hashes are serialized element by element.