diff --git a/app/models/communication/extranet.rb b/app/models/communication/extranet.rb index 6f227728cd853220b83e747ab96e673f3f656c62..268fc63728594c117c8da5fd5615e2f43d5293b4 100644 --- a/app/models/communication/extranet.rb +++ b/app/models/communication/extranet.rb @@ -64,6 +64,7 @@ class Communication::Extranet < ApplicationRecord validates_presence_of :name, :host validates :logo, size: { less_than: 1.megabytes } validates :favicon, size: { less_than: 1.megabytes } + validates_presence_of :about_type, :about_id, if: :feature_alumni before_validation :sanitize_fields