Class: UpdateSourceRankWorker

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

Instance Method Summary collapse

Instance Method Details

#perform(project_id) ⇒ Object


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

def perform(project_id)
  project = Project.find_by_id(project_id)
  project.update_source_rank if project
end