mirror of
https://github.com/kemko/paperclip.git
synced 2026-01-01 16:05:40 +03:00
Revert "Не проверяем наличие картинки в Яндекс Облаке, это не всегда правда "
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user