Fix: 本番環境でNGワードとセンシティブワードの編集が反映されない問題 (#675)
This commit is contained in:
parent
a4523b833d
commit
cf45a61ee1
2 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@ class NgWord < ApplicationRecord
|
|||
attr_accessor :keywords, :regexps, :strangers
|
||||
|
||||
validate :check_regexp
|
||||
after_commit :invalidate_cache!
|
||||
|
||||
class << self
|
||||
def caches
|
||||
|
|
|
@ -17,6 +17,7 @@ class SensitiveWord < ApplicationRecord
|
|||
attr_accessor :keywords, :regexps, :remotes, :spoilers
|
||||
|
||||
validate :check_regexp
|
||||
after_commit :invalidate_cache!
|
||||
|
||||
class << self
|
||||
def caches
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue