From 32bd1b6d9ffff8c73b93c3908572d5dbb4534934 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Fri, 6 May 2022 12:27:46 +0200 Subject: [PATCH] refactor(attachment): remove unused helpers --- app/helpers/attachment_upload_helper.rb | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 app/helpers/attachment_upload_helper.rb diff --git a/app/helpers/attachment_upload_helper.rb b/app/helpers/attachment_upload_helper.rb deleted file mode 100644 index 0edcc7cb9..000000000 --- a/app/helpers/attachment_upload_helper.rb +++ /dev/null @@ -1,19 +0,0 @@ -module AttachmentUploadHelper - def image_upload_and_render(form, file, direct_upload = nil) - render 'shared/attachment/edit', { - form: form, - attached_file: file, - accept: 'image/png, image/jpg, image/jpeg', - user_can_destroy: true, - direct_upload: direct_upload - } - end - - def text_upload_and_render(form, file) - render 'shared/attachment/edit', { - form: form, - attached_file: file, - user_can_destroy: true - } - end -end