Fix: ホワイトリストのドメインリストが並べ替えされていない問題 (#706)
This commit is contained in:
parent
44af34f306
commit
f87d30a744
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class SpecifiedDomain < ApplicationRecord
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
def white_list_domain_caches
|
def white_list_domain_caches
|
||||||
Rails.cache.fetch('specified_domains:white_list') { white_list_domains.to_a }
|
Rails.cache.fetch('specified_domains:white_list') { white_list_domains.order(:domain).to_a }
|
||||||
end
|
end
|
||||||
|
|
||||||
def save_from_hashes(rows, type, caches)
|
def save_from_hashes(rows, type, caches)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue