Sha256: 723b4fee5708e14c3a09c315454a14b092c760ffec7b8f8a479dedf984dff5c6
Contents?: true
Size: 656 Bytes
Versions: 8
Compression:
Stored size: 656 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, foreign_key: "scope_type_id", class_name: "Decidim::Scope", inverse_of: :scope_type, dependent: :nullify validates :name, presence: true end end
Version data entries
8 entries across 8 versions & 1 rubygems