update filters as well
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user