Fix searching in Japanese (#99)

This was broken because we were using the browser-provided locale as a prefix to our method, but that is 'ja' and our methods were prefixed with 'jp'.
This commit is contained in:
Justin Edmund 2023-06-18 23:43:50 -07:00 committed by GitHub
parent 66eaece635
commit 4567766530
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@ class Character < ApplicationRecord
}
}
pg_search_scope :jp_search,
pg_search_scope :ja_search,
against: :name_jp,
using: {
tsearch: {

View file

@ -14,7 +14,7 @@ class Guidebook < ApplicationRecord
}
}
pg_search_scope :jp_search,
pg_search_scope :ja_search,
against: :name_jp,
using: {
tsearch: {

View file

@ -16,7 +16,7 @@ class JobSkill < ApplicationRecord
}
}
pg_search_scope :jp_search,
pg_search_scope :ja_search,
against: :name_jp,
using: {
tsearch: {

View file

@ -11,7 +11,7 @@ class Summon < ApplicationRecord
}
}
pg_search_scope :jp_search,
pg_search_scope :ja_search,
against: :name_jp,
using: {
tsearch: {

View file

@ -11,7 +11,7 @@ class Weapon < ApplicationRecord
}
}
pg_search_scope :jp_search,
pg_search_scope :ja_search,
against: :name_jp,
using: {
tsearch: {