From 8e5b0c79ae86be131f0ed3a6cbca3e16853ed163 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Thu, 18 May 2017 13:53:23 +0530 Subject: [PATCH] FIX: allow images to be uploaded in wizard --- app/models/upload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/upload.rb b/app/models/upload.rb index cca2f0a246f..93646dc811e 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -22,7 +22,7 @@ class Upload < ActiveRecord::Base validates_with ::Validators::UploadValidator CROPPED_TYPES ||= %w{avatar card_background custom_emoji profile_background}.each(&:freeze) - UPLOAD_TYPES ||= CROPPED_TYPES + %w{composer category_logo category_background}.each(&:freeze) + UPLOAD_TYPES ||= CROPPED_TYPES + %w{composer category_logo category_background wizard_logo_url wizard_logo_small_url wizard_favicon_url wizard_apple_touch_icon_url}.each(&:freeze) def thumbnail(width = self.width, height = self.height) optimized_images.find_by(width: width, height: height)