assemblymade/coderwall

View on GitHub
app/jobs/refresh_timeline_job.rb

Summary

Maintainability
A
0 mins
Test Coverage
class RefreshTimelineJob
  include Sidekiq::Worker

  sidekiq_options queue: :timeline

  def perform(username)
    user = User.find_by_username(username)
    Event.create_timeline_for(user)
  end
end