Add missing partial and wildcard search on /admin/contact_versions

This commit is contained in:
Thiago Youssef 2022-03-29 13:31:31 +03:00
parent 2cff7d93fd
commit 7b47eab0d8
3 changed files with 15 additions and 24 deletions

View file

@ -1,12 +1,11 @@
class PartialSearchFormatter
def self.format(params)
percentage = '%'
search_params = params.deep_dup
search_params.each do |key, value|
next unless key.include?('matches') && value.present?
value << percentage
value << '%'
end
search_params