The code powering m.abunchtell.com https://m.abunchtell.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

15 satır
370 B

  1. # frozen_string_literal: true
  2. class AuthorizeFollowWorker
  3. include Sidekiq::Worker
  4. def perform(source_account_id, target_account_id)
  5. source_account = Account.find(source_account_id)
  6. target_account = Account.find(target_account_id)
  7. AuthorizeFollowService.new.call(source_account, target_account)
  8. rescue ActiveRecord::RecordNotFound
  9. true
  10. end
  11. end