Remove unnecessary html_safe in paths

Paths are just regular strings with no HTML, so they don't need to be
marked as safe HTML.
This commit is contained in:
Javi Martín
2019-10-01 15:16:45 +02:00
parent 20ca6beb30
commit 031b5aba63
4 changed files with 6 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ class Admin::Legislation::HomepagesController < Admin::Legislation::BaseControll
def update
if @process.update(process_params)
link = legislation_process_path(@process).html_safe
link = legislation_process_path(@process)
redirect_back(fallback_location: (request.referer || root_path),
notice: t("admin.legislation.processes.update.notice", link: link))
else