Skip to content
Snippets Groups Projects
Commit 0e17a82d authored by pabois's avatar pabois
Browse files

prevent activation of alumni if no source target

parent d55ab036
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment