Skip to content

Commit

Permalink
Use a method that's compatible with both AS and paperclip adapters
Browse files Browse the repository at this point in the history
This template is used by both.
  • Loading branch information
elia committed Feb 12, 2021
1 parent cf84b22 commit 430e14b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<%= f.field_container attachment do %>
<%= f.label attachment %><br>
<%= 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,
Expand Down

0 comments on commit 430e14b

Please sign in to comment.