class ActiveStorage::Service
def content_disposition_with(type: "inline", filename:)
def content_disposition_with(type: "inline", filename:) (type.to_s.presence_in(%w( attachment inline )) || "inline") + "; #{filename.parameters}" end
def content_disposition_with(type: "inline", filename:) (type.to_s.presence_in(%w( attachment inline )) || "inline") + "; #{filename.parameters}" end