Fix: 本番環境でNGワードとセンシティブワードの編集が反映されない問題 (#675)

This commit is contained in:
KMY(雪あすか) 2024-03-27 12:10:33 +09:00 committed by GitHub
parent a4523b833d
commit cf45a61ee1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -16,6 +16,7 @@ class NgWord < ApplicationRecord
attr_accessor :keywords, :regexps, :strangers
validate :check_regexp
after_commit :invalidate_cache!
class << self
def caches

View file

@ -17,6 +17,7 @@ class SensitiveWord < ApplicationRecord
attr_accessor :keywords, :regexps, :remotes, :spoilers
validate :check_regexp
after_commit :invalidate_cache!
class << self
def caches