From 9d53418acb736476e4ede216c1ba9d08a5e3554a Mon Sep 17 00:00:00 2001 From: "http://jneen.net/" Date: Tue, 1 Aug 2017 11:43:24 -0700 Subject: [PATCH] clearer argument name --- app/services/notification_recipient_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/notification_recipient_service.rb b/app/services/notification_recipient_service.rb index 540e568fed2..cfc1fab210a 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)