Sha256: 6309dc3bb5da8ebcc66e1dba8ba5fa1cef0514517ee99fe5134fac877588c845
Contents?: true
Size: 713 Bytes
Versions: 10
Compression:
Stored size: 713 Bytes
Contents
# frozen_string_literal: true if !Rails.env.production? || ENV["SEED"] staging_organization = Decidim::Organization.order(id: :asc).first process_admin = Decidim::User.create!( name: "Process Admin", email: "process_admin@example.org", password: "decidim123456", password_confirmation: "decidim123456", confirmed_at: Time.current, locale: I18n.default_locale, organization: staging_organization, tos_agreement: true, comments_notifications: true, replies_notifications: true ) Decidim::Admin::ParticipatoryProcessUserRole.create!( user: process_admin, participatory_process: Decidim::ParticipatoryProcess.order(id: :asc).first, role: "admin" ) end
Version data entries
10 entries across 10 versions & 2 rubygems