Revert "Add reject pattern to Admin setting"

This reverts commit 0cd5faaa9d.
This commit is contained in:
2024-02-22 20:46:08 +09:00
parent c2e185162d
commit 0eb421cc64
9 changed files with 2 additions and 275 deletions

View File

@@ -33,7 +33,6 @@ class Form::AdminSettings
content_cache_retention_period
backups_retention_period
status_page_url
reject_pattern
).freeze
INTEGER_KEYS = %i(
@@ -70,7 +69,6 @@ class Form::AdminSettings
validates :show_domain_blocks_rationale, inclusion: { in: %w(disabled users all) }, if: -> { defined?(@show_domain_blocks_rationale) }
validates :media_cache_retention_period, :content_cache_retention_period, :backups_retention_period, numericality: { only_integer: true }, allow_blank: true, if: -> { defined?(@media_cache_retention_period) || defined?(@content_cache_retention_period) || defined?(@backups_retention_period) }
validates :site_short_description, length: { maximum: 200 }, if: -> { defined?(@site_short_description) }
validates :reject_pattern, regexp_syntax: true, if: -> { defined?(@reject_pattern) }
validates :status_page_url, url: true, allow_blank: true
validate :validate_site_uploads