From a08b50280deb8db5fa400e598a5f4bd200442c6a Mon Sep 17 00:00:00 2001 From: Marlon Henry Schweigert Date: Sun, 24 Dec 2017 17:08:00 -0200 Subject: [PATCH] Fixnum Deprecated --- data_objects/lib/data_objects/pooling.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_objects/lib/data_objects/pooling.rb b/data_objects/lib/data_objects/pooling.rb index 05f2ce64..68d301e7 100644 --- a/data_objects/lib/data_objects/pooling.rb +++ b/data_objects/lib/data_objects/pooling.rb @@ -146,7 +146,7 @@ class Pool attr_reader :used def initialize(max_size, resource, args) - raise ArgumentError.new("+max_size+ should be a Fixnum but was #{max_size.inspect}") unless Fixnum === max_size + raise ArgumentError.new("+max_size+ should be a Fixnum but was #{max_size.inspect}") unless Integer === max_size raise ArgumentError.new("+resource+ should be a Class but was #{resource.inspect}") unless Class === resource @max_size = max_size