Sha256: ff64e00207db7b19bd80d91fae046cb4704c985139a054f54c687b7ab2421277
Contents?: true
Size: 626 Bytes
Versions: 21
Compression:
Stored size: 626 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 include Decidim::TranslatableResource translatable_fields :name, :plural belongs_to :organization, foreign_key: "decidim_organization_id", class_name: "Decidim::Organization", inverse_of: :scope_types has_many :scopes, class_name: "Decidim::Scope", inverse_of: :scope_type, dependent: :nullify validates :name, presence: true end end
Version data entries
21 entries across 21 versions & 1 rubygems