Bye bye bygbug.

This commit is contained in:
Guo Xiang Tan 2017-01-24 14:07:55 +08:00
parent ce07da1d8b
commit eafd0a7497

View File

@ -10,7 +10,6 @@ class CensoredWordsValidator < ActiveModel::EachValidator
elsif !SiteSetting.censored_pattern.blank? &&
!(censored_words = value.scan(/#{SiteSetting.censored_pattern}/i)).empty?
byebug
record.errors.add(
attribute, :matches_censored_pattern,
censored_words: join_censored_words(censored_words)