mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-29 08:09:55 -04:00
FIX: Disable validation during thumbnail creation
This commit is contained in:
parent
db066b5d3f
commit
2e8838a0cd
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class Upload < ActiveRecord::Base
|
|||
optimized_images << thumbnail
|
||||
self.width = width
|
||||
self.height = height
|
||||
save!
|
||||
save(validate: false)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue