From dd6ed13a9a42027ea637489e1c5470d835914cdb Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 4 Sep 2017 14:06:19 +0800 Subject: [PATCH] Remove use of deprecated `Fixnum`. --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index 08db612..c6a1fc4 100644 --- a/plugin.rb +++ b/plugin.rb @@ -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