diff --git a/.circleci/config.yml b/.circleci/config.yml index f69b92a47c7..e2fe7acb602 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -98,6 +98,8 @@ jobs: postgres: executor: postgres parallelism: ¶llelism 3 + environment: + ENABLE_ACTIVE_STORAGE: true steps: - setup - test @@ -105,6 +107,8 @@ jobs: mysql: executor: mysql parallelism: *parallelism + environment: + ENABLE_ACTIVE_STORAGE: true steps: - setup - test diff --git a/backend/app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb b/backend/app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb index f6e2d899add..fa433f5de6a 100644 --- a/backend/app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb +++ b/backend/app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb @@ -2,7 +2,7 @@ <%= f.field_container attachment do %> <%= f.label attachment %>
<%= f.file_field attachment %> - <% if f.object.send(attachment).present? %> + <% if f.object.send(:"#{attachment}_present?") %> <%= image_tag f.object.send(attachment, definition[:default_style]) %> <%= link_to t('spree.actions.remove'), admin_taxonomy_taxon_attachment_path(@taxonomy,