From 23066edbe15800f991fe7811663966644d9bacb7 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 21 Feb 2014 16:25:19 -0500 Subject: [PATCH] FIX: undefined method error for some digests. --- app/helpers/user_notifications_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/user_notifications_helper.rb b/app/helpers/user_notifications_helper.rb index 728f4cd9ea7..94141a98fa9 100644 --- a/app/helpers/user_notifications_helper.rb +++ b/app/helpers/user_notifications_helper.rb @@ -60,7 +60,7 @@ module UserNotificationsHelper else # Otherwise, try just the first paragraph. para = first_paragraph_from(html) - raw Sanitize.clean(para, UserNotificationsHelper.sanitize_options) + raw Sanitize.clean(para.to_s, UserNotificationsHelper.sanitize_options) end end end