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:
parent
baaa8bfe94
commit
d6cad414ac
5 changed files with 5 additions and 5 deletions
|
|
@ -11,7 +11,7 @@ class Character < ApplicationRecord
|
|||
}
|
||||
}
|
||||
|
||||
pg_search_scope :jp_search,
|
||||
pg_search_scope :ja_search,
|
||||
against: :name_jp,
|
||||
using: {
|
||||
tsearch: {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ class Guidebook < ApplicationRecord
|
|||
}
|
||||
}
|
||||
|
||||
pg_search_scope :jp_search,
|
||||
pg_search_scope :ja_search,
|
||||
against: :name_jp,
|
||||
using: {
|
||||
tsearch: {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ class JobSkill < ApplicationRecord
|
|||
}
|
||||
}
|
||||
|
||||
pg_search_scope :jp_search,
|
||||
pg_search_scope :ja_search,
|
||||
against: :name_jp,
|
||||
using: {
|
||||
tsearch: {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ class Summon < ApplicationRecord
|
|||
}
|
||||
}
|
||||
|
||||
pg_search_scope :jp_search,
|
||||
pg_search_scope :ja_search,
|
||||
against: :name_jp,
|
||||
using: {
|
||||
tsearch: {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ class Weapon < ApplicationRecord
|
|||
}
|
||||
}
|
||||
|
||||
pg_search_scope :jp_search,
|
||||
pg_search_scope :ja_search,
|
||||
against: :name_jp,
|
||||
using: {
|
||||
tsearch: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue