2020-05-02 09:45:11 -07:00
|
|
|
class ProfileHeaderUploader < BaseUploader
|
2020-05-01 15:43:46 -07:00
|
|
|
def default_url(*args)
|
2022-07-10 09:32:27 -07:00
|
|
|
"/images/header/#{[version_name || args.first, 'no_header.jpg'].compact.join('/')}"
|
2020-05-01 15:43:46 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
version :web do
|
|
|
|
process resize_to_fit: [1500, 350]
|
|
|
|
end
|
|
|
|
version :mobile do
|
|
|
|
process resize_to_fit: [450, 105]
|
|
|
|
end
|
|
|
|
version :retina do
|
|
|
|
process resize_to_fit: [900, 210]
|
|
|
|
end
|
|
|
|
end
|