From 6544521250b30271eca8eedd3643a90b6ef7bf6f Mon Sep 17 00:00:00 2001 From: Alik Kruhlienia Date: Wed, 24 Jan 2024 14:25:26 +0200 Subject: [PATCH] use base_class when specyfing recipient_type --- app/models/concerns/noticed/deliverable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/noticed/deliverable.rb b/app/models/concerns/noticed/deliverable.rb index 05621c0..ba684c6 100644 --- a/app/models/concerns/noticed/deliverable.rb +++ b/app/models/concerns/noticed/deliverable.rb @@ -91,7 +91,7 @@ def deliver(recipients = nil, options = {}) def recipient_attributes_for(recipient) { type: "#{self.class.name}::Notification", - recipient_type: recipient.class.name, + recipient_type: recipient.class.base_class.name, recipient_id: recipient.id } end