Add more images to admin site customization

This commit is contained in:
decabeza
2022-05-19 20:34:09 +02:00
committed by Javi Martín
parent 11bed74678
commit 10cd182774
12 changed files with 81 additions and 12 deletions

View File

@@ -6,12 +6,21 @@ class SiteCustomization::Image < ApplicationRecord
"social_media_icon" => [470, 246],
"social_media_icon_twitter" => [246, 246],
"apple-touch-icon-200" => [200, 200],
"auth_bg" => [1280, 1500],
"budget_execution_no_image" => [800, 600],
"budget_investment_no_image" => [800, 600],
"favicon" => [16, 16],
"map" => [420, 500],
"logo_email" => [400, 80]
"logo_email" => [400, 80],
"welcome_process" => [370, 185]
}.freeze
VALID_MIME_TYPES = %w[image/jpeg image/png].freeze
VALID_MIME_TYPES = %w[
image/jpeg
image/png
image/vnd.microsoft.icon
image/x-icon
].freeze
has_attachment :image