Class: Workarea::RemoveAuthenticationTokensOnPasswordChanges

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::CallbacksWorker, Sidekiq::Worker
Defined in:
app/workers/workarea/remove_authentication_tokens_on_password_changes.rb

Instance Method Summary collapse

Instance Method Details

#perform(id) ⇒ Object



15
16
17
# File 'app/workers/workarea/remove_authentication_tokens_on_password_changes.rb', line 15

def perform(id)
  User.find(id).authentication_tokens.destroy_all
end