Transliterate accented characters in search
This commit is contained in:
parent
52199af407
commit
277df57e46
@ -27,7 +27,8 @@ module PreferencesHelper
|
||||
end
|
||||
if @preference.term
|
||||
conditions.push "#{sort_col} LIKE ?"
|
||||
params.push "%#{@preference.term}%"
|
||||
search_term = ActiveSupport::Inflector.transliterate(@preference.term)
|
||||
params.push "%#{search_term}%"
|
||||
end
|
||||
[ conditions.join(" AND ") ] + params
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user