Sha256: ca39cbff2cbea34564093f165775944970c330648d5ca3c116d904b2a78480b1
Contents?: true
Size: 497 Bytes
Versions: 54
Compression:
Stored size: 497 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin # A form object used to create attachments in a participatory process. # class AttachmentForm < Form include TranslatableAttributes attribute :file translatable_attribute :title, String translatable_attribute :description, String mimic :attachment validates :file, presence: true, unless: :persisted? validates :title, :description, translatable_presence: true end end end
Version data entries
54 entries across 54 versions & 2 rubygems