Use the oldschool RAILS_ENV constant to get the current environment, if the newfangled Rails.env isn't available.
Use the oldschool RAILS_ENV constant to get the current environment, if the newfangled Rails.env isn't available.

pboling/sanitize_email,yez/sanitize_email,brentvatne/sanitize_email