Sha256: 4e80a1f303816e628b838cc39b2b8590779d77f589b7d610416dcc41e0bd458e
Contents?: true
Size: 534 Bytes
Versions: 5
Compression:
Stored size: 534 Bytes
Contents
# frozen_string_literal: true module Decidim module ReportingProposals module Admin class ProposalPhotoForm < Decidim::Form include Decidim::AttachmentAttributes attribute :attachment, AttachmentForm attachments_attribute :photos validates :add_photos, presence: true def proposal @proposal ||= Decidim::Proposals::Proposal.find(id) end def current_component @current_component ||= proposal&.component end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems