Skip to content

Commit

Permalink
use base_class when specyfing recipient_type
Browse files Browse the repository at this point in the history
  • Loading branch information
alikrugl committed Jan 24, 2024
1 parent 42b7fff commit 6544521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/noticed/deliverable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6544521

Please sign in to comment.