Sha256: 0aa934d0124f905a0d905684c90b31477938b186c0861406256b00ba46b49b17

Contents?: true

Size: 584 Bytes

Versions: 62

Compression:

Stored size: 584 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 :supports_required,
                  presence: true,
                  numericality: {
                    only_integer: true,
                    greater_than: 0
                  }
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
decidim-initiatives-0.29.1 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.28.4 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.27.9 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.29.0 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.28.3 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.27.8 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.29.0.rc4 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.29.0.rc3 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.29.0.rc2 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.29.0.rc1 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.28.2 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.27.7 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.28.1 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.27.6 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.26.10 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.26.9 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.28.0 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.27.5 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.28.0.rc5 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
decidim-initiatives-0.28.0.rc4 app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb