Sha256: ac94d51d02b54bf5e2469dbf0901749637717c70be96ae8a745d31348f572882
Contents?: true
Size: 557 Bytes
Versions: 6
Compression:
Stored size: 557 Bytes
Contents
# frozen_string_literal: true if !Rails.env.production? || ENV.fetch("SEED", nil) print "Creating seeds for decidim-system...\n" unless Rails.env.test? password = ENV.fetch("DECIDIM_SYSTEM_USER_PASSWORD", "decidim123456789") Decidim::System::Admin.find_or_initialize_by(email: "system@example.org").update!( password:, password_confirmation: password ) Decidim::Organization.find_each do |organization| Decidim::System::CreateDefaultPages.call(organization) Decidim::System::CreateDefaultHelpPages.call(organization) end end
Version data entries
6 entries across 6 versions & 1 rubygems