Sha256: 7777e843ecb719ee51350e31f7258179aa7c8709395fdd5ef81d7830173be82f
Contents?: true
Size: 467 Bytes
Versions: 16
Compression:
Stored size: 467 Bytes
Contents
# frozen_string_literal: true module Decidim module Plans # A form object to be used when public users want to request acces to a Plan. class RequestAccessToPlanForm < Decidim::Form mimic :plan attribute :id, String attribute :state, String validates :id, presence: true validates :state, presence: true, inclusion: { in: %w(open) } def plan @plan ||= Decidim::Plans::Plan.find id end end end end
Version data entries
16 entries across 16 versions & 1 rubygems