Sha256: f26e53def6aefc146de8acdd47fc1c33ea228ce6bd5c40826dd822b6a11e3b8a
Contents?: true
Size: 626 Bytes
Versions: 71
Compression:
Stored size: 626 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin # This form contains the presentational and validation logic to update # ContextualHelpSections from the admin panel. class HelpSectionForm < Decidim::Form include TranslatableAttributes include TranslationsHelper attribute :id, String translatable_attribute :content, String def name multi_translation("activerecord.models.#{manifest.model_class_name.underscore}.other") end private def manifest @manifest ||= Decidim.find_participatory_space_manifest(id) end end end end
Version data entries
71 entries across 71 versions & 1 rubygems