app/views/fields/refile/_show.html.erb in administrate-field-refile-0.0.2 vs app/views/fields/refile/_show.html.erb in administrate-field-refile-0.0.3
- old
+ new
@@ -10,9 +10,10 @@
- `field`:
An instance of [Administrate::Field::Refile][1].
%>
+<% return nil if field.data.nil? %>
<% if @_requested_resource.public_send("#{field.name}").is_a?(Array) %>
<% @_requested_resource.public_send("#{field.name.split('_')[0]}").each do |photo| %>
<%= link_to photo.file_filename, attachment_url(photo, :file) %>
<% end %>
<% else %>