mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 06:56:23 +02:00
Fixed ransack admin search
This commit is contained in:
parent
ae384e4e64
commit
aa8d8c35e8
9 changed files with 34 additions and 20 deletions
|
@ -5,7 +5,7 @@ class PartialSearchFormatter
|
|||
search_params.each do |key, value|
|
||||
next unless key.include?('matches') && value.present?
|
||||
|
||||
search_params[key] = "%#{value}%"
|
||||
search_params[key] = value =~ /\A\*.*\*\z/ ? value.gsub(/\A\*|\*\z/, '') : "%#{value}%"
|
||||
end
|
||||
|
||||
search_params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue