Fix dev_seeds polls
This commit is contained in:
@@ -52,8 +52,8 @@ section "Creating Poll Questions & Answers" do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
question.save!
|
question.save!
|
||||||
Faker::Lorem.words((2..4).to_a.sample).each do |title|
|
Faker::Lorem.words((2..4).to_a.sample).each_with_index do |title, index|
|
||||||
description = "<p>#{Faker::Lorem.paragraphs.join("</p><p>")}</p>"
|
description = "<p>#{Faker::Lorem.paragraphs.join('</p><p>')}</p>"
|
||||||
answer = Poll::Question::Answer.new(question: question,
|
answer = Poll::Question::Answer.new(question: question,
|
||||||
title: title.capitalize,
|
title: title.capitalize,
|
||||||
description: description,
|
description: description,
|
||||||
|
|||||||
Reference in New Issue
Block a user