FIX: refactor ImageSizer.resize

reverts 140d9c2
This commit is contained in:
Penar Musaraj
2018-11-29 15:28:45 -05:00
parent 140d9c2910
commit 0eacd45ab1
3 changed files with 6 additions and 4 deletions

View File

@ -128,9 +128,7 @@ class Upload < ActiveRecord::Base
end
self.width, self.height = size = FastImage.new(path).size
if !size.blank?
self.thumbnail_width, self.thumbnail_height = ImageSizer.resize(*size)
end
self.thumbnail_width, self.thumbnail_height = ImageSizer.resize(*size)
nil
end