get rid of "Fixnum is deprecated" warning
This commit is contained in:
parent
6f6ac3cc7d
commit
76f4ec35e2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue