From 7a567cc40b899e71cce6925202d7f9315da5243d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aivils=20=C5=A0toss?= Date: Fri, 12 Apr 2019 11:54:21 +0300 Subject: [PATCH] Remove deprecated Fixnum --- lib/entity_utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/entity_utils.rb b/lib/entity_utils.rb index 23f90c4..ce60711 100644 --- a/lib/entity_utils.rb +++ b/lib/entity_utils.rb @@ -108,7 +108,7 @@ def model_to_hash(model) end }, fixnum: -> (_, v, _) { - unless (v.nil? || v.is_a?(Fixnum)) + unless (v.nil? || v.is_a?(Integer)) {code: :fixnum, msg: "Value must be a Fixnum. Was: #{v} (#{v.class.name})." } end },