clearer argument name

This commit is contained in:
http://jneen.net/ 2017-08-01 11:43:24 -07:00
parent e5496e1e8e
commit 9d53418acb

View file

@ -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)