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 %>
|
<% end %>
|
||||||
|
|
||||||
<% if feature?(:allow_attached_documents) %>
|
<% if feature?(:allow_attached_documents) %>
|
||||||
<%= render "documents/documents",
|
<%= render "documents/documents", documents: investment.documents %>
|
||||||
documents: investment.documents,
|
|
||||||
max_documents_allowed: Budget::Investment.max_documents_allowed %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "shared/tags", taggable: investment %>
|
<%= render "shared/tags", taggable: investment %>
|
||||||
|
|||||||
@@ -87,9 +87,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if feature?(:allow_attached_documents) %>
|
<% if feature?(:allow_attached_documents) %>
|
||||||
<%= render "documents/documents",
|
<%= render "documents/documents", documents: @proposal.documents %>
|
||||||
documents: @proposal.documents,
|
|
||||||
max_documents_allowed: Proposal.max_documents_allowed %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "shared/tags", taggable: @proposal %>
|
<%= render "shared/tags", taggable: @proposal %>
|
||||||
|
|||||||
@@ -67,9 +67,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if feature?(:allow_attached_documents) %>
|
<% if feature?(:allow_attached_documents) %>
|
||||||
<%= render "documents/documents",
|
<%= render "documents/documents", documents: @proposal.documents %>
|
||||||
documents: @proposal.documents,
|
|
||||||
max_documents_allowed: Proposal.max_documents_allowed %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "shared/tags", taggable: @proposal %>
|
<%= render "shared/tags", taggable: @proposal %>
|
||||||
|
|||||||
Reference in New Issue
Block a user