Sha256: da209190e0b40e81faecab55286cc79bd3fbb8ac6c16a9a937020204a05cb77e

Contents?: true

Size: 462 Bytes

Versions: 55

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # A form object used to create participatory space private users from the
    # admin dashboard.
    #
    class ParticipatorySpacePrivateUserForm < Form
      mimic :participatory_space_private_user

      attribute :name, String
      attribute :email, String

      validates :name, :email, presence: true

      validates :name, format: { with: UserBaseEntity::REGEXP_NAME }
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

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