Class: Upgrade::CreateSpecialListsJob

Inherits:
IterationJob
  • Object
show all
Defined in:
app/jobs/upgrade/create_special_lists_job.rb

Instance Method Summary collapse

Instance Method Details

#build_enumerator(cursor:) ⇒ Object



4
5
6
# File 'app/jobs/upgrade/create_special_lists_job.rb', line 4

def build_enumerator(cursor:)
  enumerator_builder.active_record_on_records(User.all, cursor: cursor)
end

#each_iteration(user) ⇒ Object



8
9
10
# File 'app/jobs/upgrade/create_special_lists_job.rb', line 8

def each_iteration(user)
  user.send :create_special_lists
end