You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
235 B

  1. class HubPingWorker
  2. include Sidekiq::Worker
  3. include RoutingHelper
  4. def perform(account_id)
  5. account = Account.find(account_id)
  6. account.ping!(account_url(account, format: 'atom'), [Rails.configuration.x.hub_url])
  7. end
  8. end