fix the build

This commit is contained in:
Régis Hanol
2018-05-03 10:32:01 +02:00
parent 8d0c073d39
commit 9ff2d540ba
5 changed files with 5 additions and 9 deletions

View File

@ -171,7 +171,7 @@ after_initialize do
cooked = PrettyText.cook(raw, topic_id: topic_id, user_id: user_id)
Nokogiri::HTML(cooked).css("div.poll").map do |p|
poll = { "options" => [], "voters" => 0 }
poll = { "options" => [], "voters" => 0, "name" => DiscoursePoll::DEFAULT_POLL_NAME }
# attributes
p.attributes.values.each do |attribute|