app/controllers/alchemy/admin/attachments_controller.rb in alchemy_cms-7.0.0.pre.a vs app/controllers/alchemy/admin/attachments_controller.rb in alchemy_cms-7.0.0.pre.b
- old
+ new
@@ -50,11 +50,11 @@
handle_uploader_response(status: :accepted)
else
render_errors_or_redirect(
@attachment,
admin_attachments_path(search_filter_params),
- Alchemy.t("File successfully updated"),
+ Alchemy.t("File successfully updated")
)
end
end
def destroy
@@ -66,19 +66,19 @@
def download
@attachment = Attachment.find(params[:id])
send_file @attachment.file.path, {
filename: @attachment.file_name,
- type: @attachment.file_mime_type,
+ type: @attachment.file_mime_type
}
end
private
def search_filter_params
@_search_filter_params ||= params.except(*COMMON_SEARCH_FILTER_EXCLUDES + [:attachment]).permit(
*common_search_filter_includes + [
- :form_field_id,
+ :form_field_id
]
)
end
def handle_uploader_response(status:)