Add validation for enterprise white_label_logo

This commit is contained in:
François Turbelin
2025-10-27 18:02:26 +01:00
parent ba9dca4b05
commit f5e3d104e2

View File

@@ -115,6 +115,9 @@ class Enterprise < ApplicationRecord
validates :promo_image,
processable_image: true,
content_type: %r{\Aimage/(png|jpeg|gif|jpg|svg\+xml|webp)\Z}
validates :white_label_logo,
processable_image: true,
content_type: %r{\Aimage/(png|jpeg|gif|jpg|svg\+xml|webp)\Z}
validates :terms_and_conditions, content_type: {
in: "application/pdf",
message: I18n.t(:enterprise_terms_and_conditions_type_error),