assemblymade/coderwall

View on GitHub
app/jobs/index_protip_job.rb

Summary

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

  sidekiq_options queue: :index

  def perform(protip_id)
    protip = Protip.find(protip_id)
    protip.tire.update_index unless protip.user.banned?
  end
end