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.23.3 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.23.2 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.23.1 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.23.1.rc1 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.23.0 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.22.0 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.21.0 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.20.1 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.20.0 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.19.1 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.18.1 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.19.0 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.17.2 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.18.0 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.17.1 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.16.1 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.17.0 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.16.0 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.15.2 app/models/concerns/decidim/consultations/override_categorization.rb
decidim-consultations-0.15.1 app/models/concerns/decidim/consultations/override_categorization.rb