diff options
Diffstat (limited to 'lib/hashie/utils.rb')
-rw-r--r-- | lib/hashie/utils.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/hashie/utils.rb b/lib/hashie/utils.rb index 5b55b9a..9dc6294 100644 --- a/lib/hashie/utils.rb +++ b/lib/hashie/utils.rb @@ -34,10 +34,10 @@ module Hashie # @return [Array<Class>] def self.integer_classes @integer_classes ||= - if const_defined?(:Fixnum) - [Fixnum, Bignum] # rubocop:disable Lint/UnifiedInteger - else + if 0.class == Integer [Integer] + else + [Fixnum, Bignum] # rubocop:disable Lint/UnifiedInteger end end end |