Sha256: b9b463d63be7c652944997d58ad21ed17807962177f44751b005dcb2802eb6b2
Contents?: true
Size: 556 Bytes
Versions: 12
Compression:
Stored size: 556 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, password_confirmation: password ) Decidim::Organization.find_each do |organization| Decidim::System::CreateDefaultPages.call(organization) Decidim::System::PopulateHelp.call(organization) end end
Version data entries
12 entries across 12 versions & 1 rubygems