Get the current environment from Rails.env rather than the RAILS_ENV environment variable.
Get the current environment from Rails.env rather than the RAILS_ENV environment variable.

This fixes an issue where sanitize_email wouldn't properly trigger when a rake task was being used to send out emails. Rake does not set the RAILS_ENV environment variable.

brentvatne/sanitize_email,pboling/sanitize_email,yez/sanitize_email