From 76f4ec35e2b2bb1456e3ed4dc7435dd3e519e34f Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Sun, 19 Apr 2020 14:39:59 +0200 Subject: [PATCH] get rid of "Fixnum is deprecated" warning --- app/helpers/theme_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/theme_helper.rb b/app/helpers/theme_helper.rb index 06a1ff39..1202588c 100644 --- a/app/helpers/theme_helper.rb +++ b/app/helpers/theme_helper.rb @@ -23,7 +23,7 @@ module ThemeHelper end elsif hash.is_a? Hash hash.each do |k, v| - next unless v.is_a? Fixnum + next unless v.is_a? Integer self.instance_variable_set "@#{k}", ('#' + ('0000000' + hash[k].to_s(16))[-6, 6]) end