Sha256: a627186fcb574e990167aac2eb4929e5d13d84e91c0fd84202696a2a96174e08

Contents?: true

Size: 618 Bytes

Versions: 50

Compression:

Stored size: 618 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # A form object used to transfer conflicted users from the admin dashboard.
    #
    # This form will contain a dynamic attribute for the user authorization.
    # This authorization will be selected by the admin user if more than one exists.
    class TransferUserForm < Form
      attribute :email, String
      attribute :reason, String
      attribute :current_user, Decidim::User
      attribute :conflict, Decidim::Verifications::Conflict

      validates :current_user, presence: true
      validates :conflict, presence: true
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

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