Remove use of deprecated `Fixnum`.
This commit is contained in:
parent
6bb3d86d55
commit
dd6ed13a9a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue