Sha256: 6c64d1ac401d0f8acf720689bc77b6e106616f209ea0fed51be4884eeb8f2b92

Contents?: true

Size: 595 Bytes

Versions: 21

Compression:

Stored size: 595 Bytes

Contents

# frozen_string_literal: true

module Decidim
  class ParticipatoryProcessGroup < ApplicationRecord
    include Decidim::Resourceable

    has_many :participatory_processes,
             foreign_key: "decidim_participatory_process_group_id",
             class_name: "Decidim::ParticipatoryProcess",
             inverse_of: :participatory_process_group,
             dependent: :nullify

    belongs_to :organization,
               foreign_key: "decidim_organization_id",
               class_name: "Decidim::Organization"

    mount_uploader :hero_image, Decidim::HeroImageUploader
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.18.1 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.17.2 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.18.0 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.17.1 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.16.1 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.17.0 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.16.0 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.15.2 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.15.1 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.15.0 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.14.4 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.14.3 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.14.2 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.14.1 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.13.1 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.12.2 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.13.0 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.12.1 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.13.0.pre1 app/models/decidim/participatory_process_group.rb
decidim-participatory_processes-0.12.0 app/models/decidim/participatory_process_group.rb