Class: RailsIdentity::SessionsCleanupJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/rails_identity/sessions_cleanup_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(*args) ⇒ Object



5
6
7
8
9
10
11
# File 'app/jobs/rails_identity/sessions_cleanup_job.rb', line 5

def perform(*args)
  # Do something later
  args.each do |uuid|
    session = Session.find_by_uuid(uuid)
    session.destroy()
  end
end