From 21fcdba8c874d8270b8414655a556ce927da1307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 1 Oct 2019 16:25:02 +0200 Subject: [PATCH] Remove obsolete method This method wasn't used since commit 24dde9c3. --- app/helpers/valuation_helper.rb | 15 --------------- config/locales/en/valuation.yml | 4 ---- config/locales/es/valuation.yml | 4 ---- 3 files changed, 23 deletions(-) diff --git a/app/helpers/valuation_helper.rb b/app/helpers/valuation_helper.rb index a0ba66e3a..8767ebb96 100644 --- a/app/helpers/valuation_helper.rb +++ b/app/helpers/valuation_helper.rb @@ -13,21 +13,6 @@ module ValuationHelper ValuatorGroup.order("name ASC").collect { |g| [g.name, "group_#{g.id}"] } end - def assigned_valuators_info(valuators) - case valuators.size - when 0 - t("valuation.budget_investments.index.no_valuators_assigned") - when 1 - "".html_safe + - valuators.first.name + - "".html_safe - else - "".html_safe + - t("valuation.budget_investments.index.valuators_assigned", count: valuators.size) + - "".html_safe - end - end - def explanation_field(field) simple_format_no_tags_no_sanitize(safe_html_with_links(field.html_safe)) if field.present? end diff --git a/config/locales/en/valuation.yml b/config/locales/en/valuation.yml index 452c0b1e6..2c8c6d7c2 100644 --- a/config/locales/en/valuation.yml +++ b/config/locales/en/valuation.yml @@ -27,10 +27,6 @@ en: assigned_to: "Assigned to %{valuator}" title: Investment projects edit: Edit dossier - valuators_assigned: - one: Assigned valuator - other: "%{count} valuators assigned" - no_valuators_assigned: No valuators assigned table_id: ID table_title: Title table_heading_name: Heading name diff --git a/config/locales/es/valuation.yml b/config/locales/es/valuation.yml index 08b9ac9b0..15d6b7c31 100644 --- a/config/locales/es/valuation.yml +++ b/config/locales/es/valuation.yml @@ -27,10 +27,6 @@ es: assigned_to: "Asignadas a %{valuator}" title: Proyectos de gasto edit: Editar informe - valuators_assigned: - one: Evaluador asignado - other: "%{count} evaluadores asignados" - no_valuators_assigned: Sin evaluador table_id: ID table_title: Título table_heading_name: Nombre de la partida