@@ -214,7 +214,7 module ApplicationHelper | |||
|
214 | 214 | |
|
215 | 215 | # Truncates and returns the string as a single line |
|
216 | 216 | def truncate_single_line(string, *args) |
|
217 | truncate(string, *args).gsub(%r{[\r\n]+}m, ' ') | |
|
217 | truncate(string.to_s, *args).gsub(%r{[\r\n]+}m, ' ') | |
|
218 | 218 | end |
|
219 | 219 | |
|
220 | 220 | def html_hours(text) |
General Comments 0
You need to be logged in to leave comments.
Login now