Remove unnecessary `Object.const_get`

This commit is contained in:
Karina Kwiatek 2023-01-02 09:30:51 +01:00
parent 7766c9bd5e
commit 0241a02e29
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class ShareWorker
def revoke_and_notify(user_id, service)
@user_service.destroy
Object.const_get("Notification::ServiceTokenExpired").create(
Notification::ServiceTokenExpired.create(
target_id: user_id,
target_type: "User::Expired#{service.camelize}ServiceConnection",
recipient_id: user_id,