FIX: undefined method error for some digests.

This commit is contained in:
Robin Ward 2014-02-21 16:25:19 -05:00
parent b21949c7cb
commit 23066edbe1

View File

@ -60,7 +60,7 @@ module UserNotificationsHelper
else else
# Otherwise, try just the first paragraph. # Otherwise, try just the first paragraph.
para = first_paragraph_from(html) para = first_paragraph_from(html)
raw Sanitize.clean(para, UserNotificationsHelper.sanitize_options) raw Sanitize.clean(para.to_s, UserNotificationsHelper.sanitize_options)
end end
end end
end end