Files
nairobi/app/models
Bertocq 6b41b6487b Add UserSegments#user_segment_emails helper method
Why:

Both Newsletters and Email Downloads need the same logic: To extract the
emails from all the users in the segment that have newsletter flag
active, removing all empty email values.

How:

1- UserSegments#user_segment_emails holds that repeated logic and is used
on both Newsletter & EmailDownload.

2- Rename Newsletter#list_of_recipients to list_of_recipient_emails as
it is more descriptive. There is no need to pass entire Users around,
only the emails are needed at Mailer#newsletter method.

3- Cleanup Newsletter#list_of_recipient_emails model spec scenario
2018-03-01 20:59:20 +01:00
..
2017-07-18 13:07:30 +02:00
2015-07-15 13:32:13 +02:00
2017-11-17 13:14:03 -04:00
2017-07-25 13:01:03 +02:00
2016-01-26 18:10:47 +01:00
2017-10-17 22:00:00 +02:00
2016-11-23 19:19:19 +01:00
2016-05-10 18:31:50 +02:00
2017-04-06 16:25:07 +02:00
2018-02-22 00:42:40 +01:00
2016-05-30 13:55:12 +02:00
2015-08-08 12:56:41 +02:00
2017-12-15 19:21:02 +01:00