blob: a2d10bcf01524bf08d0e2e2e7a0a95ef1db68caf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# frozen_string_literal: true
class AfterUnblockDomainFromAccountService < BaseService
def call(account, domain)
@account = account
@domain = domain
unblock_accounts!
end
private
def unblock_accounts!
@account.blocking.where(domain: @domain).find_each do |blocked_account|
UnblockService.new.call(@account, blocked_account)
end
end
end
|