Module: EmailDetected::Config

Defined in:
lib/email_detected/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.test_modeObject

Returns the value of attribute test_mode.



5
6
7
# File 'lib/email_detected/config.rb', line 5

def test_mode
  @test_mode
end

.verifier_emailObject

Returns the value of attribute verifier_email.



4
5
6
# File 'lib/email_detected/config.rb', line 4

def verifier_email
  @verifier_email
end

Class Method Details

.resetObject



7
8
9
10
11
12
13
14
15
# File 'lib/email_detected/config.rb', line 7

def reset
  # This only needs to be something the receiving SMTP server
  # accepts.  We aren't actually sending any mail.
  @verifier_email = ENV['EMAIL_DETECTED'] || "[email protected]"
  @test_mode = false
  if defined?(Rails) and defined?(Rails.env) and Rails.env.test?
    @test_mode = true
  end
end