Fix environment check for old versions of Rails
Fix environment check for old versions of Rails

In some versions of Rails, the Rails module exists but the env method on
it does not. Confirm that the Rails module exists _and_ responds to :env
before calling Rails.env instead of RAILS_ENV.

yez/sanitize_email,pboling/sanitize_email