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

Version Path
decidim-initiatives-0.19.1 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.18.1 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.19.0 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.17.2 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.18.0 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.17.1 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.16.1 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.17.0 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.16.0 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.15.2 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.15.1 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.15.0 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.14.4 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.14.3 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.14.2 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.14.1 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.13.1 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.12.2 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.13.0 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.12.1 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb