diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 17:34:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 17:34:42 +0300 |
commit | 9f46488805e86b1bc341ea1620b866016c2ce5ed (patch) | |
tree | f9748c7e287041e37d6da49e0a29c9511dc34768 /app/models/appearance.rb | |
parent | dfc92d081ea0332d69c8aca2f0e745cb48ae5e6d (diff) |
Add latest changes from gitlab-org/gitlab@13-0-stable-ee
Diffstat (limited to 'app/models/appearance.rb')
-rw-r--r-- | app/models/appearance.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/appearance.rb b/app/models/appearance.rb index 9da4dfd43b5..00a95070691 100644 --- a/app/models/appearance.rb +++ b/app/models/appearance.rb @@ -8,6 +8,7 @@ class Appearance < ApplicationRecord cache_markdown_field :description cache_markdown_field :new_project_guidelines + cache_markdown_field :profile_image_guidelines cache_markdown_field :header_message, pipeline: :broadcast_message cache_markdown_field :footer_message, pipeline: :broadcast_message @@ -15,12 +16,14 @@ class Appearance < ApplicationRecord validates :header_logo, file_size: { maximum: 1.megabyte } validates :message_background_color, allow_blank: true, color: true validates :message_font_color, allow_blank: true, color: true + validates :profile_image_guidelines, length: { maximum: 4096 } validate :single_appearance_row, on: :create default_value_for :title, '' default_value_for :description, '' default_value_for :new_project_guidelines, '' + default_value_for :profile_image_guidelines, '' default_value_for :header_message, '' default_value_for :footer_message, '' default_value_for :message_background_color, '#E75E40' |