We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b41095 commit a1cf1c0Copy full SHA for a1cf1c0
app/views/shared/_form_image_fields.html.erb
@@ -81,7 +81,7 @@
81
</div>
82
83
84
- <% if f.object.images.any? %>
+ <% if f.object.respond_to?(:images) && f.object.images.any? %>
85
<div class="bg-red-200 p-3 pb-9">
86
<h3 class="text-lg font-medium mt-6 mb-2">
87
Legacy Images (need to manually download and upload above, then remove)
@@ -122,7 +122,7 @@
122
123
<% end %>
124
125
- <% if f.object.attachments.any? %>
+ <% if f.object.respond_to?(:attachments) && f.object.attachments.any? %>
126
127
128
Legacy Attachments (need to manually download and upload above, then remove)
0 commit comments