diff --git a/app/services/notification_recipient_service.rb b/app/services/notification_recipient_service.rb index 540e568fed255cfdedcbe3881c14d177612b6537..cfc1fab210ad2354be418bcf6a682be626fb8aa1 100644 --- a/app/services/notification_recipient_service.rb +++ b/app/services/notification_recipient_service.rb @@ -48,8 +48,8 @@ module NotificationRecipientService @recipients ||= [] end - def <<(arg) - users, type = arg + def <<(pair) + users, type = pair if users.is_a?(ActiveRecord::Relation) users = users.includes(:notification_settings)