Module: EmailDetected::Config
- Defined in:
- lib/email_detected/config.rb
Class Attribute Summary collapse
-
.test_mode ⇒ Object
Returns the value of attribute test_mode.
-
.verifier_email ⇒ Object
Returns the value of attribute verifier_email.
Class Method Summary collapse
Class Attribute Details
.test_mode ⇒ Object
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_email ⇒ Object
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
.reset ⇒ Object
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 |