Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Fixnum Deprecated #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data_objects/lib/data_objects/pooling.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down