Merge remote-tracking branch 'parent/main' into upstream-20240817
This commit is contained in:
commit
82ffc95733
97 changed files with 1377 additions and 472 deletions
|
@ -427,7 +427,7 @@ class MediaAttachment < ApplicationRecord
|
|||
attachment = public_send(attachment_name)
|
||||
styles = DEFAULT_STYLES | attachment.styles.keys
|
||||
styles.map { |style| attachment.path(style) }
|
||||
end
|
||||
end.compact
|
||||
rescue => e
|
||||
# We really don't want any error here preventing media deletion
|
||||
Rails.logger.warn "Error #{e.class} busting cache: #{e.message}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue