The link is public but protected by a secure token. This extends the activesupport Attachment model to automatically generate a token
4 lines
90 B
Ruby
4 lines
90 B
Ruby
Rails.configuration.to_prepare do
|
|
ActiveStorage::Attachment.send(:has_secure_token)
|
|
end
|