Merge branch 'emailvalidation'

This commit is contained in:
Kyle Drake 2016-05-14 23:21:22 -04:00
commit 6b88c8339d
19 changed files with 181 additions and 28 deletions

View file

@ -121,6 +121,8 @@ class Site < Sequel::Model
maximum_site_files: 2000
)
EMAIL_VALIDATION_CUTOFF_DATE = Time.parse('May 16, 2016')
def self.newsletter_sites
Site.select(:email).
exclude(email: 'nil').exclude(is_banned: true).
@ -160,6 +162,8 @@ class Site < Sequel::Model
EMAIL_BLAST_MAXIMUM_PER_DAY = 1000
end
MAXIMUM_EMAIL_CONFIRMATIONS = 20
many_to_many :tags
one_to_many :profile_comments