Merge pull request #3607 from okriuchykhin/ok_SCI_6142

Change the assets URL returned by API to pre-signed url [SCI-6142]
This commit is contained in:
Alex Kriuchykhin 2021-10-28 14:32:47 +02:00 committed by GitHub
commit 17a4afc6fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ module Api
end
def file_url
rails_blob_url(object.file, disposition: 'attachment') if object.file.attached?
object.file.url if object.file.attached?
end
end
end

View file

@ -22,7 +22,7 @@ module Api
end
def pdf_file_url
rails_blob_path(object.pdf_file, disposition: 'attachment')
object.pdf_file.url if object.pdf_file.attached?
end
def docx_file_size
@ -30,7 +30,7 @@ module Api
end
def docx_file_url
rails_blob_path(object.docx_file, disposition: 'attachment')
object.docx_file.url if object.docx_file.attached?
end
end
end