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