Sha256: e1efe2ef8ba549c5e034d9f7318d0a251927956ed32c6e1b45f163e091a20eec
Contents?: true
Size: 637 Bytes
Versions: 26
Compression:
Stored size: 637 Bytes
Contents
# frozen_string_literal: true module Decidim module Initiatives module Admin # A form object used to collect the all the scopes related to an # initiative type class InitiativeTypeScopeForm < Form mimic :initiatives_type_scope attribute :supports_required, Integer attribute :decidim_scopes_id, Integer validates :decidim_scopes_id, presence: true validates :supports_required, presence: true, numericality: { only_integer: true, greater_than: 0 } end end end end
Version data entries
26 entries across 26 versions & 1 rubygems