Sha256: bc24b906aef4e1237cff1716a9e866099d089c9098dbbb1036268ddf972311eb

Contents?: true

Size: 578 Bytes

Versions: 4

Compression:

Stored size: 578 Bytes

Contents

# frozen_string_literal: true
module Decidim
  class ParticipatoryProcessGroup < ApplicationRecord
    has_many :participatory_processes,
             foreign_key: "decidim_participatory_process_group_id",
             class_name: Decidim::ParticipatoryProcess,
             inverse_of: :participatory_process_group
    belongs_to :organization,
               foreign_key: "decidim_organization_id",
               class_name: Decidim::Organization,
               inverse_of: :participatory_process_groups

    mount_uploader :hero_image, Decidim::HeroImageUploader
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-core-0.1.0 app/models/decidim/participatory_process_group.rb
decidim-core-0.0.8.1 app/models/decidim/participatory_process_group.rb
decidim-core-0.0.7 app/models/decidim/participatory_process_group.rb
decidim-core-0.0.6 app/models/decidim/participatory_process_group.rb