Class: SyncPermissionsWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/sync_permissions_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(user_id) ⇒ Object



5
6
7
8
# File 'app/workers/sync_permissions_worker.rb', line 5

def perform(user_id)
  user = User.find_by_id(user_id)
  user.update_repo_permissions if user
end