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.27.9 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.27.8 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.27.7 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.27.6 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.26.10 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.26.9 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.27.5 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.26.8 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.27.4 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.27.3 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.26.7 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.26.5 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.27.2 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.27.1 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.26.4 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.27.0 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.26.3 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.27.0.rc2 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.27.0.rc1 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.26.2 app/models/concerns/decidim/consultations/override_categorization.rb