domains = group.automatic_membership_email_domains.gsub('.', '\.')
if self.email =~ Regexp.new("@(#{domains})$", true)
you have automatic membership domain of *@mydomain.com remove the *@
@techAPJ can you add a validator there?
domains = group.automatic_membership_email_domains.gsub('.', '\.')
if self.email =~ Regexp.new("@(#{domains})$", true)
you have automatic membership domain of *@mydomain.com remove the *@
@techAPJ can you add a validator there?