Add nested documents to new budgetinvestments.

This commit is contained in:
Senén Rodero Rodríguez
2017-08-24 00:40:12 +02:00
parent d34216b5a7
commit 4081dded5f
6 changed files with 28 additions and 8 deletions

View File

@@ -10,6 +10,7 @@ class Budget
documentable max_documents_allowed: 3,
max_file_size: 3.megabytes,
accepted_content_types: [ "application/pdf" ]
accepts_nested_attributes_for :documents, allow_destroy: true
acts_as_votable
acts_as_paranoid column: :hidden_at