app/views/spina/admin/attachments/create.js.erb in spina-0.12.0 vs app/views/spina/admin/attachments/create.js.erb in spina-1.0.0

- old
+ new

@@ -1,3 +2 @@ -<% unless @attachment.new_record? %> - $(".table-prepend-document").prepend("<%= j render partial: 'spina/admin/attachments/attachment', object: @attachment %>"); -<% end %> +$(".table-prepend-document").prepend("<%= j render partial: 'spina/admin/attachments/attachment', collection: @attachments %>");