Sha256: 7fbc9ba72695d20692ece0e5950f9e638c6276dd66abcbf75800f2726e17998d
Contents?: true
Size: 859 Bytes
Versions: 6
Compression:
Stored size: 859 Bytes
Contents
# frozen_string_literal: true if !Rails.env.production? || ENV.fetch("SEED", nil) print "Creating seeds for decidim_awesome...\n" unless Rails.env.test? organization = Decidim::Organization.first # Set the htmleditor on to facilitate development admin_user = Decidim::User.find_by( organization: organization, email: "admin@example.org" ) Decidim.traceability.update!( organization, admin_user, rich_text_editor_in_public_views: true ) # Enable images in general setting = Decidim::DecidimAwesome::AwesomeConfig.find_or_initialize_by(var: :allow_images_in_full_editor, organization: organization) setting.value = true setting.save! setting = Decidim::DecidimAwesome::AwesomeConfig.find_or_initialize_by(var: :allow_images_in_small_editor, organization: organization) setting.value = true setting.save! end
Version data entries
6 entries across 6 versions & 1 rubygems