Fix bug.
This commit is contained in:
parent
477821bb17
commit
9b905812cb
|
@ -42,6 +42,8 @@ module AnnouncementsHelper
|
|||
else
|
||||
image_url = a.image.url
|
||||
end
|
||||
doc = Nokogiri::HTML(a.title)
|
||||
title = doc.text.empty? ? 'no content' : doc.text
|
||||
{
|
||||
"bulletin_links" => links,
|
||||
"bulletin_files" => files,
|
||||
|
|
Loading…
Reference in New Issue