* only list users who have opted into email

This commit is contained in:
Seth Call 2015-06-10 16:41:52 -05:00
parent 622f750b2d
commit 6afcc84088
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class EmailController < ApplicationController
headers['Content-Disposition'] = "attachment; filename=\"user-list.csv\""
headers['Content-Type'] ||= 'text/csv'
@users = User.all
@users = User.where(subscribe_email: true)
end
end