update filters as well

This commit is contained in:
2026-01-23 01:56:03 +01:00
parent 26e702528a
commit 2b35a0bb0e
5 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class Entry < ApplicationRecord
return none unless valid_lang?(language_code)
return all if prefix.blank?
where("#{language_code} LIKE ?", "#{sanitize_sql_like(prefix)}%")
where(arel_table[language_code].matches("#{sanitize_sql_like(prefix)}%"))
end
def self.alphabetical_for(language_code)