I have the following:
EXCLUSION_DOMAINS = %w[
example.com
test.com
asdf.com
yahoo.
gmail
]
Some of these exclusion domains have the full address like.com, others just a high level domain for generic matching.
Given this list, and given a value, how can I determine if the value matches one of the exclusion domains w rails 3?
Thanks
1 Answer