mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-07-17 03:23:25 +00:00
Remove use of deprecated Fixnum
.
This commit is contained in:
parent
6bb3d86d55
commit
dd6ed13a9a
@ -757,7 +757,7 @@ SQL
|
||||
when :int
|
||||
invalid_format string, 'Not an integer' unless string =~ /^-?\d+$/
|
||||
value = string.to_i
|
||||
invalid_format string, 'Too large' unless Fixnum === value
|
||||
invalid_format string, 'Too large' unless Integer === value
|
||||
when :bigint
|
||||
invalid_format string, 'Not an integer' unless string =~ /^-?\d+$/
|
||||
value = string.to_i
|
||||
|
Loading…
x
Reference in New Issue
Block a user