summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 8a4f8f6d8..b302879fb 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -214,7 +214,7 @@ module ApplicationHelper
# Truncates and returns the string as a single line
def truncate_single_line(string, *args)
- truncate(string, *args).gsub(%r{[\r\n]+}m, ' ')
+ truncate(string.to_s, *args).gsub(%r{[\r\n]+}m, ' ')
end
def html_hours(text)