Revert "Не проверяем наличие картинки в Яндекс Облаке, это не всегда правда "

This commit is contained in:
Andrey Stikheev
2022-02-22 13:57:49 +03:00
committed by GitHub
parent 72e78e3551
commit 1d5635b3bd

View File

@@ -138,6 +138,7 @@ module Paperclip
end
def download_file(style = default_style)
return unless instance_read(:synced_to_yandex)
uri = URI(URI.encode(url(style)))
response = Net::HTTP.get_response(uri)
create_tempfile(response.body) if response.is_a?(Net::HTTPOK)