mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 08:22:05 +02:00
Add missing partial and wildcard search on /admin/contact_versions
This commit is contained in:
parent
2cff7d93fd
commit
7b47eab0d8
3 changed files with 15 additions and 24 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue