Skip to content

Commit

Permalink
Merge pull request #305 from codeforjapan/fix-seeds-decidim_awesome
Browse files Browse the repository at this point in the history
Fix #304; ignore seeds of DecidimAwesome
  • Loading branch information
ayuki-joto authored Nov 8, 2021
2 parents da581b1 + be7d1fc commit 43a71a7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@

require_relative "../lib/monkey_patching_faker"

# Seeds of DecidimAwesome 0.7.0 and 0.7.2 support Faker 2.x, not 1.9.x.
# So Decidim 0.23.5 (using Faker 1.9.6) should ignore seeds of them.
#
map_component = Decidim.find_component_manifest("awesome_map")
map_component.seeds do |participatory_space|
# noop
end

iframe_component = Decidim.find_component_manifest("awesome_iframe")
iframe_component.seeds do |participatory_space|
# noop
end

Decidim.seed!

if !Rails.env.production? || ENV["SEED"]
Expand Down

0 comments on commit 43a71a7

Please sign in to comment.