From f40b569a4a7d9c3a28baba3ed3a31e0a4032203e Mon Sep 17 00:00:00 2001 From: AthiraKadampatta Date: Fri, 7 Oct 2022 11:08:52 +0530 Subject: [PATCH] 9726 Use active storage filename instead of attachment_file_name of paperclip --- app/views/spree/admin/images/edit.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spree/admin/images/edit.html.haml b/app/views/spree/admin/images/edit.html.haml index 970f67d132..6c6c035827 100644 --- a/app/views/spree/admin/images/edit.html.haml +++ b/app/views/spree/admin/images/edit.html.haml @@ -7,7 +7,7 @@ = form_for [:admin, @product, @image], url: admin_product_image_path(@product, @image, @url_filters), html: { multipart: true } do |f| %fieldset - %legend{align: "center"}= @image.attachment_file_name + %legend{align: "center"}= @image.attachment&.filename .field.alpha.three.columns.align-center = f.label t('spree.thumbnail') %br/