From f3a7de55ea62135ff060e4f3740c3be5211b3b66 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Wed, 10 Jan 2018 01:13:34 +0100 Subject: [PATCH] Rename should_show_price_info? to should_show_price_explanation? at Budget::Investment & usage --- app/models/budget/investment.rb | 2 +- app/views/budgets/investments/_investment_show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/budget/investment.rb b/app/models/budget/investment.rb index 4e2e5d0b0..b2cc8cba5 100644 --- a/app/models/budget/investment.rb +++ b/app/models/budget/investment.rb @@ -245,7 +245,7 @@ class Budget (budget.reviewing_ballots? || budget.finished?) end - def should_show_price_info? + def should_show_price_explanation? feasible? && price_explanation.present? && (budget.balloting? || budget.reviewing_ballots? || budget.finished?) diff --git a/app/views/budgets/investments/_investment_show.html.erb b/app/views/budgets/investments/_investment_show.html.erb index 946952bd9..3b0078bf8 100644 --- a/app/views/budgets/investments/_investment_show.html.erb +++ b/app/views/budgets/investments/_investment_show.html.erb @@ -71,7 +71,7 @@

<%= investment.unfeasibility_explanation %>

<% end %> - <% if investment.should_show_price_info? %> + <% if investment.should_show_price_explanation? %>

<%= t('budgets.investments.show.price_explanation') %>

<%= investment.price_explanation %>

<% end %>