Simplify interpolation

It's OK ot use single quotes inside a string with double quotes in order
to avoid escape characters.
This commit is contained in:
Javi Martín
2019-01-10 15:08:17 +01:00
parent ee2f970e03
commit 814579d58f

View File

@@ -12,7 +12,7 @@ module BudgetInvestmentsHelper
translation = t("admin.budget_investments.index.list.#{column}")
link_to(
"#{translation} <span class=\"#{icon}\"></span>".html_safe,
"#{translation} <span class='#{icon}'></span>".html_safe,
admin_budget_budget_investments_path(sort_by: column, direction: direction)
)
end