Added default_url to 404 image
This commit is contained in:
parent
d74d507a3f
commit
9667139531
1 changed files with 5 additions and 1 deletions
|
|
@ -39,8 +39,12 @@ class ImageUploader < Shrine
|
|||
end
|
||||
|
||||
# Default to dynamic thumbnail URL (requires `default_url` plugin)
|
||||
# Attacher.default_url do |derivative: nil, **|
|
||||
# file&.derivation_url(:thumbnail, *THUMBNAILS.fetch(derivative)) if derivative
|
||||
# end
|
||||
|
||||
Attacher.default_url do |derivative: nil, **|
|
||||
file&.derivation_url(:thumbnail, *THUMBNAILS.fetch(derivative)) if derivative
|
||||
'/images/dummy/no-screenshots-upload-one.svg'
|
||||
end
|
||||
|
||||
# Dynamic thumbnail definition (requires `derivation_endpoint` plugin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue