Remove unneeded html_safe and raw calls

There's no HTML in these texts, or it has already been escaped by Rails
`link_to` helper method.
This commit is contained in:
Javi Martín
2019-10-02 02:24:25 +02:00
parent 2c80c05372
commit 20ca6beb30
10 changed files with 25 additions and 10 deletions

View File

@@ -17,7 +17,7 @@ class DirectUploadsController < ApplicationController
render json: { cached_attachment: @direct_upload.relation.cached_attachment,
filename: @direct_upload.relation.attachment.original_filename,
destroy_link: render_destroy_upload_link(@direct_upload).html_safe,
destroy_link: render_destroy_upload_link(@direct_upload),
attachment_url: @direct_upload.relation.attachment.url }
else
@direct_upload.destroy_attachment