Possible to define whitelist emails

This commit is contained in:
Priit Tark 2015-08-11 15:05:05 +03:00
parent e5d03e3cdf
commit ef9048edb0
3 changed files with 20 additions and 20 deletions

View file

@ -1,20 +1,13 @@
TEST_EMAILS = %w(
timo.vohmar@internet.ee
timo.vohmar@eestiinternet.ee
rene.vahtel@internet.ee
martin.mettig@internet.ee
hannes.klausen@internet.ee
georg.kahest@internet.ee
norman.aeg@internet.ee
martti.oigus@internet.ee
jana.jarve@internet.ee
martin@gitlab.eu
priit@gitlab.eu
info@gitlab.eu
test@example.com
test@example.org
old@example.org
new@example.org
old@example.com
new@example.com
)
TEST_EMAILS =
if Rails.env.test?
%w(
test@example.com
test@example.org
old@example.org
new@example.org
old@example.com
new@example.com
)
else
ENV['whitelist_emails_for_staging'].split(',').map(&:strip)
end