Class: Decidim::Admin::VerifyUserGroupFromCsvJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/decidim/admin/verify_user_group_from_csv_job.rb

Overview

Custom ApplicationJob scoped to the admin panel.

Instance Method Summary collapse

Instance Method Details

#perform(email, verifier, organization) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'app/jobs/decidim/admin/verify_user_group_from_csv_job.rb', line 10

def perform(email, verifier, organization)
  @organization = organization
  @email = email.downcase.strip

  return if email.blank?
  return unless user_group

  Decidim::Admin::VerifyUserGroup.call(user_group, verifier, via_csv: true)
end