From 946342bffb06a763d44d1708cd4c7b6526d1c861 Mon Sep 17 00:00:00 2001 From: Absurdon Date: Wed, 15 Mar 2017 13:53:18 +0100 Subject: [PATCH] Fixed link formatting error --- app/helpers/application_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 561202d..b62ef42 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -35,9 +35,9 @@ module ApplicationHelper end str = model.to_s if length and str.length > length - link_to raw(str.to_s[0, length] + "..."), model, class: model.class.to_s.downcase + link_to str.to_s[0, length] + "...", model, class: model.class.to_s.downcase else - link_to raw(str), model, class: model.class.to_s.downcase + link_to str, model, class: model.class.to_s.downcase end end