From 6d8f6445bcb02b703e8df32b24a6ca957cac30d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 12 Oct 2023 18:18:31 +0200 Subject: [PATCH] Remove unused parameter when rendering documents This parameter isn't used in the `documents/_documents` partial. --- app/views/budgets/investments/_investment_detail.html.erb | 4 +--- app/views/legislation/proposals/show.html.erb | 4 +--- app/views/proposals/_info.html.erb | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/app/views/budgets/investments/_investment_detail.html.erb b/app/views/budgets/investments/_investment_detail.html.erb index 626cabf8f..cab44899d 100644 --- a/app/views/budgets/investments/_investment_detail.html.erb +++ b/app/views/budgets/investments/_investment_detail.html.erb @@ -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 %> diff --git a/app/views/legislation/proposals/show.html.erb b/app/views/legislation/proposals/show.html.erb index 406e8fa36..ec31d0f88 100644 --- a/app/views/legislation/proposals/show.html.erb +++ b/app/views/legislation/proposals/show.html.erb @@ -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 %> diff --git a/app/views/proposals/_info.html.erb b/app/views/proposals/_info.html.erb index ec5d2b866..6bb723136 100644 --- a/app/views/proposals/_info.html.erb +++ b/app/views/proposals/_info.html.erb @@ -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 %>