Sha256: 5d963e4eaa949f41252e8248ea4c9a87fc7ddea120906138afd0d45ea3d10c12

Contents?: true

Size: 561 Bytes

Versions: 27

Compression:

Stored size: 561 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # Scope types allows to use different types of scopes in participatory process
  # (municipalities, provinces, states, countries, etc.)
  class ScopeType < ApplicationRecord
    belongs_to :organization,
               foreign_key: "decidim_organization_id",
               class_name: "Decidim::Organization",
               inverse_of: :scope_types

    has_many :scopes, foreign_key: "decidim_scope_type_id", class_name: "Decidim::Scope", inverse_of: :scope_type

    validates :name, presence: true
  end
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
decidim-core-0.7.4 app/models/decidim/scope_type.rb
decidim-core-0.7.3 app/models/decidim/scope_type.rb
decidim-core-0.7.2 app/models/decidim/scope_type.rb
decidim-core-0.7.1 app/models/decidim/scope_type.rb
decidim-core-0.7.0 app/models/decidim/scope_type.rb
decidim-core-0.6.8 app/models/decidim/scope_type.rb
decidim-0.6.8 decidim-core/app/models/decidim/scope_type.rb
decidim-core-0.6.7 app/models/decidim/scope_type.rb
decidim-0.6.7 decidim-core/app/models/decidim/scope_type.rb
decidim-core-0.6.6 app/models/decidim/scope_type.rb
decidim-0.6.6 decidim-core/app/models/decidim/scope_type.rb
decidim-core-0.6.5 app/models/decidim/scope_type.rb
decidim-0.6.5 decidim-core/app/models/decidim/scope_type.rb
decidim-core-0.6.4 app/models/decidim/scope_type.rb
decidim-0.6.4 decidim-core/app/models/decidim/scope_type.rb
decidim-core-0.6.3 app/models/decidim/scope_type.rb
decidim-0.6.3 decidim-core/app/models/decidim/scope_type.rb
decidim-core-0.6.2 app/models/decidim/scope_type.rb
decidim-0.6.2 decidim-core/app/models/decidim/scope_type.rb
decidim-core-0.6.1 app/models/decidim/scope_type.rb