get rid of "Fixnum is deprecated" warning

This commit is contained in:
Georg Gadinger 2020-04-19 14:39:59 +02:00
parent 6f6ac3cc7d
commit 76f4ec35e2
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ module ThemeHelper
end end
elsif hash.is_a? Hash elsif hash.is_a? Hash
hash.each do |k, v| 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]) self.instance_variable_set "@#{k}", ('#' + ('0000000' + hash[k].to_s(16))[-6, 6])
end end