Sha256: 11f58a7ac2aad724cd5ff246402c54d33e61d20c260a523fd80c6e1fff28e505

Contents?: true

Size: 588 Bytes

Versions: 75

Compression:

Stored size: 588 Bytes

Contents

# frozen_string_literal: true

require "active_support/concern"

module Decidim
  module Consultations
    module OverrideCategorization
      extend ActiveSupport::Concern

      included do
        # This relationship exists only by compatibility reasons.
        # Consultations are not intended to have categories.
        has_many :categories,
                 foreign_key: "decidim_participatory_space_id",
                 foreign_type: "decidim_participatory_space_type",
                 dependent: :destroy,
                 as: :participatory_space
      end
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
decidim-consultations-0.26.1 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.26.0 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.26.0.rc2 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.26.0.rc1 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.25.2 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.25.1 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.25.0 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.25.0.rc4 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.25.0.rc3 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.25.0.rc2 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.25.0.rc1 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.24.3 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.23.6 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.24.2 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.23.5 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.24.1 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.24.0 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.24.0.rc2 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.23.4 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.24.0.rc1 app/models/concerns/decidim/consultations/override_categorization.rb