Merge pull request #3573 from gschlager/patch-1

FIX: Disable validation during thumbnail creation
This commit is contained in:
Robin Ward 2015-07-01 15:22:02 -04:00
commit bfb4dc0055
1 changed files with 1 additions and 1 deletions

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