method
content_disposition_with
rails latest stable - Class:
ActiveStorage::Service
content_disposition_with(type: "inline", filename:)private
No documentation available.
# File activestorage/lib/active_storage/service.rb, line 175
def content_disposition_with(type: "inline", filename))
disposition = (type.to_s.presence_in(%( attachment inline )) || "inline")
ActionDispatch::Http::ContentDisposition.format(disposition: disposition, filename: filename.sanitized)
end