Module: NinthBit::CustomEnvironments::ClassMethods

Defined in:
lib/sanitize_email/custom_environments.rb

Instance Method Summary collapse

Instance Method Details

#consider_local?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/sanitize_email/custom_environments.rb', line 15

def consider_local?
  local_environments.include?(defined?(Rails) ? Rails.env : RAILS_ENV)
end