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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user