Rename investment helper method

This commit is contained in:
Senén Rodero Rodríguez
2017-06-24 20:22:00 +02:00
parent c89dc90d3a
commit 79ed66ec4c
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -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 %>