refactor(attachment): remove unused helpers
This commit is contained in:
parent
bc77390cfe
commit
32bd1b6d9f
1 changed files with 0 additions and 19 deletions
|
@ -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
|
Loading…
Reference in a new issue