I'm getting this warning when executing filterrific with ruby 3:
param_set.rb:99: warning: deprecated Object#=~ is called on Integer; it always returns nil
Looking at past issues I have found a similar issue that was fixed in line 104 https://github.com/jhund/filterrific/commit/2488ef50c47e0fb4271fd244cd1384d5bdccb211
Looks like line 99 uses the same pattern and can also be fixed with the same patch:
fp[key] = fp[key].map { |e| e.is_a?(String) && e =~ integer_detector_regex ? e.to_i : e }
I'm getting this warning when executing filterrific with ruby 3:
param_set.rb:99: warning: deprecated Object#=~ is called on Integer; it always returns nil
Looking at past issues I have found a similar issue that was fixed in line 104 https://github.com/jhund/filterrific/commit/2488ef50c47e0fb4271fd244cd1384d5bdccb211 Looks like line 99 uses the same pattern and can also be fixed with the same patch:fp[key] = fp[key].map { |e| e.is_a?(String) && e =~ integer_detector_regex ? e.to_i : e }