Remove unused parameter when rendering documents

This parameter isn't used in the `documents/_documents` partial.
This commit is contained in:
Javi Martín
2023-10-12 18:18:31 +02:00
parent 6d59a847eb
commit 6d8f6445bc
3 changed files with 3 additions and 9 deletions

View File

@@ -45,9 +45,7 @@
<% end %>
<% if feature?(:allow_attached_documents) %>
<%= render "documents/documents",
documents: investment.documents,
max_documents_allowed: Budget::Investment.max_documents_allowed %>
<%= render "documents/documents", documents: investment.documents %>
<% end %>
<%= render "shared/tags", taggable: investment %>

View File

@@ -87,9 +87,7 @@
<% end %>
<% if feature?(:allow_attached_documents) %>
<%= render "documents/documents",
documents: @proposal.documents,
max_documents_allowed: Proposal.max_documents_allowed %>
<%= render "documents/documents", documents: @proposal.documents %>
<% end %>
<%= render "shared/tags", taggable: @proposal %>

View File

@@ -67,9 +67,7 @@
<% end %>
<% if feature?(:allow_attached_documents) %>
<%= render "documents/documents",
documents: @proposal.documents,
max_documents_allowed: Proposal.max_documents_allowed %>
<%= render "documents/documents", documents: @proposal.documents %>
<% end %>
<%= render "shared/tags", taggable: @proposal %>