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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user