diff options
author | http://jneen.net/ <jneen@jneen.net> | 2017-08-01 21:43:24 +0300 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2017-08-03 19:07:18 +0300 |
commit | 9d53418acb736476e4ede216c1ba9d08a5e3554a (patch) | |
tree | 79f3aee50b108b91575c3557483091c4f35b7550 /app/services | |
parent | e5496e1e8ef3fa82e6cefcababcb9ad3b55a11c3 (diff) |
clearer argument name
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/notification_recipient_service.rb | 4 |
1 files 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) |