Files
grecia/app/views/admin
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
..
2018-01-29 16:48:40 +01:00
2017-10-25 18:50:30 +02:00
2017-10-25 18:52:35 +02:00
2018-01-10 22:25:41 +01:00
2017-12-15 18:48:24 +01:00
2017-10-13 21:32:19 +02:00