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
parent 58063cb45b
commit 1c791bcc46
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, against: :name_jp,
using: { using: {
tsearch: { tsearch: {

View file

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

View file

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

View file

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

View file

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