diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2023-02-04 04:56:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-04 04:56:06 +0100 |
commit | 8f590b0a211716bcbfc0f2278a452469f3346f55 (patch) | |
tree | a7c7bcebe085ed589dd2549ab536d80de8df2ebf /app/models | |
parent | 01584f03e8159cbb7b411f33bd4f66f7131ce993 (diff) |
Add setting for status page URL (#23390)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/form/admin_settings.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/form/admin_settings.rb b/app/models/form/admin_settings.rb index 132b57b04..001caa376 100644 --- a/app/models/form/admin_settings.rb +++ b/app/models/form/admin_settings.rb @@ -32,6 +32,7 @@ class Form::AdminSettings media_cache_retention_period content_cache_retention_period backups_retention_period + status_page_url ).freeze INTEGER_KEYS = %i( @@ -68,6 +69,7 @@ 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 :status_page_url, url: true validate :validate_site_uploads KEYS.each do |key| |