Rename investment helper method
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user