Code adaptation to work with nested documents and plain documents.

This commit is contained in:
Senén Rodero Rodríguez
2017-08-25 16:06:02 +02:00
parent b2a6189cf5
commit 796e6f9ce1
12 changed files with 401 additions and 281 deletions

View File

@@ -3,7 +3,7 @@
<p class="help-text"><%= documentables_note(documentable) %></p>
<% documentable.documents.each_with_index do |document, index| %>
<%= render 'documents/nested_document', document: document, index: index, documentable: documentable %>
<%= render 'documents/nested_fields', document: document, index: index, documentable: documentable %>
<% end %>
</div>