Sha256: 93dc41b7d6c79907f746459137a0db7588ed30819d8970300427e8c665705639
Contents?: true
Size: 703 Bytes
Versions: 58
Compression:
Stored size: 703 Bytes
Contents
# frozen_string_literal: true module Decidim # Assembly type. class AssembliesType < ApplicationRecord include Decidim::Traceable include Decidim::Loggable include Decidim::TranslatableResource translatable_fields :title belongs_to :organization, foreign_key: "decidim_organization_id", class_name: "Decidim::Organization" has_many :assemblies, foreign_key: "decidim_assemblies_type_id", class_name: "Decidim::Assembly", dependent: :nullify validates :title, presence: true def self.log_presenter_class_for(_log) Decidim::Assemblies::AdminLog::AssembliesTypePresenter end end end
Version data entries
58 entries across 58 versions & 1 rubygems