diff --git a/app/helpers/investments_helper.rb b/app/helpers/investments_helper.rb index ab3a2ec28..51d38d09a 100644 --- a/app/helpers/investments_helper.rb +++ b/app/helpers/investments_helper.rb @@ -8,7 +8,7 @@ module InvestmentsHelper investment.image.exists? ? "edit_note" : "add_note" end - def investment_image_button_text(investment) + def investment_image_button_text_key(investment) investment.image.exists? ? "edit_image" : "add_image" end diff --git a/app/views/budgets/investments/_investment_show.html.erb b/app/views/budgets/investments/_investment_show.html.erb index f2658cc94..c8e1376c7 100644 --- a/app/views/budgets/investments/_investment_show.html.erb +++ b/app/views/budgets/investments/_investment_show.html.erb @@ -10,7 +10,7 @@ <% end %> <% if can?(:edit_image, @investment) %> - <%= link_to t("budgets.investments.show.#{investment_image_button_text(@investment)}"), + <%= link_to t("budgets.investments.show.#{investment_image_button_text_key(@investment)}"), edit_image_budget_investment_path(investment.budget, investment), class: 'button hollow float-right' %> <% end %>