Using new access methods for ActiveStorage instead of Paperclip

This commit is contained in:
Christoph Haas 2020-04-20 20:12:10 +02:00
parent 01024c771b
commit ce881343e2
8 changed files with 16 additions and 16 deletions

View file

@ -1,7 +1,7 @@
json.package @p.name
json.screenshots @p.screenshots do |s|
json.small_image_url "https://#{request.host_with_port}#{s.image.url(:thumb, timestamp: false)}"
json.large_image_url "https://#{request.host_with_port}#{s.image.url(:large, timestamp: false)}"
json.small_image_url "https://#{request.host_with_port}#{s.image.variant(resize: "160x120", timestamp: false)}"
json.large_image_url "https://#{request.host_with_port}#{s.image.variant(resize: "800x600", timestamp: false)}"
json.version s.version
end