From 2e8838a0cdc95a596d4a62ee3984fb31973240b0 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager <mail@gerhard-schlager.at> Date: Sat, 27 Jun 2015 01:26:16 +0200 Subject: [PATCH] FIX: Disable validation during thumbnail creation --- 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 bda663f1925..995a185b299 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -34,7 +34,7 @@ class Upload < ActiveRecord::Base optimized_images << thumbnail self.width = width self.height = height - save! + save(validate: false) end end