@@ -159,7 +159,7 module ApplicationHelper | |||
|
159 | 159 | |
|
160 | 160 | # Truncates and returns the string as a single line |
|
161 | 161 | def truncate_single_line(string, *args) |
|
162 | truncate(string, *args).gsub(%r{[\r\n]+}m, ' ') | |
|
162 | truncate(string.to_s, *args).gsub(%r{[\r\n]+}m, ' ') | |
|
163 | 163 | end |
|
164 | 164 | |
|
165 | 165 | def html_hours(text) |
General Comments 0
You need to be logged in to leave comments.
Login now