mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Bye bye bygbug.
This commit is contained in:
parent
ce07da1d8b
commit
eafd0a7497
1 changed files with 0 additions and 1 deletions
|
@ -10,7 +10,6 @@ class CensoredWordsValidator < ActiveModel::EachValidator
|
||||||
elsif !SiteSetting.censored_pattern.blank? &&
|
elsif !SiteSetting.censored_pattern.blank? &&
|
||||||
!(censored_words = value.scan(/#{SiteSetting.censored_pattern}/i)).empty?
|
!(censored_words = value.scan(/#{SiteSetting.censored_pattern}/i)).empty?
|
||||||
|
|
||||||
byebug
|
|
||||||
record.errors.add(
|
record.errors.add(
|
||||||
attribute, :matches_censored_pattern,
|
attribute, :matches_censored_pattern,
|
||||||
censored_words: join_censored_words(censored_words)
|
censored_words: join_censored_words(censored_words)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue