class IndexProtip < Struct.new(:protip_id)
  extend ResqueSupport::Basic

  @queue = 'HIGH'

  def perform
    protip = Protip.find(protip_id)
    protip.tire.update_index
  end
end

class IndexProtip < Struct.new(:protip_id)
  extend ResqueSupport::Basic

  @queue = 'HIGH'

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

Check if protip owner is banned before indexing.
Check if protip owner is banned before indexing.
