diff options
Diffstat (limited to 'activesupport/lib/active_support/xml_mini.rb')
| -rw-r--r-- | activesupport/lib/active_support/xml_mini.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/xml_mini.rb b/activesupport/lib/active_support/xml_mini.rb index 46b91806f6..921a3447d0 100644 --- a/activesupport/lib/active_support/xml_mini.rb +++ b/activesupport/lib/active_support/xml_mini.rb @@ -48,8 +48,8 @@ module ActiveSupport        }        # No need to map these on Ruby 2.4+ -      TYPE_NAMES["Fixnum"] = "integer" unless Fixnum == Integer -      TYPE_NAMES["Bignum"] = "integer" unless Bignum == Integer +      TYPE_NAMES["Fixnum"] = "integer" unless 0.class == Integer +      TYPE_NAMES["Bignum"] = "integer" unless 0.class == Integer      end      FORMATTING = {  | 
