Remove use of deprecated `Fixnum`.

This commit is contained in:
Guo Xiang Tan 2017-09-04 14:06:19 +08:00
parent 6bb3d86d55
commit dd6ed13a9a
1 changed files with 1 additions and 1 deletions

View File

@ -757,7 +757,7 @@ SQL
when :int when :int
invalid_format string, 'Not an integer' unless string =~ /^-?\d+$/ invalid_format string, 'Not an integer' unless string =~ /^-?\d+$/
value = string.to_i value = string.to_i
invalid_format string, 'Too large' unless Fixnum === value invalid_format string, 'Too large' unless Integer === value
when :bigint when :bigint
invalid_format string, 'Not an integer' unless string =~ /^-?\d+$/ invalid_format string, 'Not an integer' unless string =~ /^-?\d+$/
value = string.to_i value = string.to_i