Remove unused parameter when rendering documents
This parameter isn't used in the `documents/_documents` partial.
This commit is contained in:
@@ -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 %>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user