FIX: Disable validation during thumbnail creation

This commit is contained in:
Gerhard Schlager 2015-06-27 01:26:16 +02:00
parent db066b5d3f
commit 2e8838a0cd

View File

@ -34,7 +34,7 @@ class Upload < ActiveRecord::Base
optimized_images << thumbnail
self.width = width
self.height = height
save!
save(validate: false)
end
end