@@ -214,7 +214,7 module ApplicationHelper | |||||
214 |
|
214 | |||
215 | # Truncates and returns the string as a single line |
|
215 | # Truncates and returns the string as a single line | |
216 | def truncate_single_line(string, *args) |
|
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 | end |
|
218 | end | |
219 |
|
219 | |||
220 | def html_hours(text) |
|
220 | def html_hours(text) |
General Comments 0
You need to be logged in to leave comments.
Login now