Class: Effective::MentorshipsBulkCreateGroupsJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/effective/mentorships_bulk_create_groups_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(id) ⇒ Object



4
5
6
7
# File 'app/jobs/effective/mentorships_bulk_create_groups_job.rb', line 4

def perform(id)
  bulk_group = EffectiveMentorships.MentorshipBulkGroup.find(id)
  bulk_group.with_job_status { bulk_group.create_groups! }
end