lib/decidim/conferences/participatory_space.rb in decidim-conferences-0.22.0 vs lib/decidim/conferences/participatory_space.rb in decidim-conferences-0.23.0
- old
+ new
@@ -61,15 +61,15 @@
Decidim::Faker::Localized.sentence(3)
end,
description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
Decidim::Faker::Localized.paragraph(3)
end,
- hero_image: File.new(File.join(seeds_root, "city.jpeg")),
- banner_image: File.new(File.join(seeds_root, "city2.jpeg")),
+ organization: organization,
+ hero_image: File.new(File.join(seeds_root, "city.jpeg")), # Keep after organization
+ banner_image: File.new(File.join(seeds_root, "city2.jpeg")), # Keep after organization
promoted: true,
published_at: 2.weeks.ago,
- organization: organization,
objectives: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
Decidim::Faker::Localized.paragraph(3)
end,
start_date: Time.current,
end_date: 2.months.from_now.at_midnight,
@@ -111,27 +111,27 @@
)
Decidim::Attachment.create!(
title: Decidim::Faker::Localized.sentence(2),
description: Decidim::Faker::Localized.sentence(5),
- file: File.new(File.join(seeds_root, "Exampledocument.pdf")),
attachment_collection: attachment_collection,
- attached_to: conference
+ attached_to: conference,
+ file: File.new(File.join(seeds_root, "Exampledocument.pdf")) # Keep after attached_to
)
Decidim::Attachment.create!(
title: Decidim::Faker::Localized.sentence(2),
description: Decidim::Faker::Localized.sentence(5),
- file: File.new(File.join(seeds_root, "city.jpeg")),
- attached_to: conference
+ attached_to: conference,
+ file: File.new(File.join(seeds_root, "city.jpeg")) # Keep after attached_to
)
Decidim::Attachment.create!(
title: Decidim::Faker::Localized.sentence(2),
description: Decidim::Faker::Localized.sentence(5),
- file: File.new(File.join(seeds_root, "Exampledocument.pdf")),
- attached_to: conference
+ attached_to: conference,
+ file: File.new(File.join(seeds_root, "Exampledocument.pdf")) # Keep after attached_to
)
2.times do
Decidim::Category.create!(
name: Decidim::Faker::Localized.sentence(5),
@@ -162,11 +162,11 @@
Decidim::Conferences::Partner.create!(
name: Faker::Name.name,
weight: Faker::Number.between(1, 10),
link: Faker::Internet.url,
partner_type: type,
- logo: File.new(File.join(seeds_root, "logo.png")),
- conference: conference
+ conference: conference,
+ logo: File.new(File.join(seeds_root, "logo.png")) # Keep after conference
)
end
end
5.times do