diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-03 18:17:06 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-03 18:17:06 +0200 |
commit | 7b9a4af3112dc4edcd378dc94190e2eb8e041f56 (patch) | |
tree | 8a817939f09f0b5fca6b46feb44b8ef6f9113e86 /app/services/unblock_service.rb | |
parent | 2c9e672ee2437677d6e39383e5f8e8e0837024b9 (diff) |
API for blocking and unblocking
Diffstat (limited to 'app/services/unblock_service.rb')
-rw-r--r-- | app/services/unblock_service.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/services/unblock_service.rb b/app/services/unblock_service.rb new file mode 100644 index 000000000..d24161423 --- /dev/null +++ b/app/services/unblock_service.rb @@ -0,0 +1,5 @@ +class UnblockService < BaseService + def call(account, target_account) + account.unblock!(target_account) if account.blocking?(target_account) + end +end |