instance method
public_url
Ruby on Rails 8.1.2
Since v6.1.7.10 PrivateSignature
public_url(key, filename:, content_type: nil, disposition: :attachment, **)
No documentation comment.
Parameters
-
keyreq -
filenamekeyreq -
content_typekey = nil -
dispositionkey = :attachment -
kwargskeyrest
Source
# File activestorage/lib/active_storage/service/disk_service.rb, line 120
def public_url(key, filename:, content_type: nil, disposition: :attachment, **)
generate_url(key, expires_in: nil, filename: filename, content_type: content_type, disposition: disposition)
end
Defined in activestorage/lib/active_storage/service/disk_service.rb line 120
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Service::DiskService