Sha256: 5d4c82eaef494e9cdf2800de93103769ab3bd7d0dcfbbd0ee20b0c47544093b6
Contents?: true
Size: 581 Bytes
Versions: 58
Compression:
Stored size: 581 Bytes
Contents
# frozen_string_literal: true module Decidim module Proposals module Admin # A form object to be used when admin users want to create a proposal # through the participatory texts. class ParticipatoryTextProposalForm < Admin::ProposalBaseForm attribute :title, String attribute :body, String validates :title, length: { maximum: 150 }, presence: true def map_model(model) self.title = translated_attribute(model.title) self.body = translated_attribute(model.body) end end end end end
Version data entries
58 entries across 58 versions & 1 rubygems