diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 0a6af7d..783cd77 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -397,7 +397,7 @@ module ApplicationHelper end def truncate_single_line_raw(string, length) - string.truncate(length).gsub(%r{[\r\n]+}m, ' ') + string.to_s.truncate(length).gsub(%r{[\r\n]+}m, ' ') end # Truncates at line break after 250 characters or options[:length]