Rename should_show_price_info? to should_show_price_explanation? at Budget::Investment & usage

This commit is contained in:
Bertocq
2018-01-10 01:13:34 +01:00
parent 3bc683edce
commit f3a7de55ea
2 changed files with 2 additions and 2 deletions

View File

@@ -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?)

View File

@@ -71,7 +71,7 @@
<p><%= investment.unfeasibility_explanation %></p>
<% end %>
<% if investment.should_show_price_info? %>
<% if investment.should_show_price_explanation? %>
<h2><%= t('budgets.investments.show.price_explanation') %></h2>
<p><%= investment.price_explanation %></p>
<% end %>