Class: DevelopmentMailInterceptor
- Inherits:
-
Object
- Object
- DevelopmentMailInterceptor
- Defined in:
- lib/development_mail_interceptor.rb
Class Method Summary collapse
Class Method Details
.delivering_email(message) ⇒ Object
2 3 4 5 6 |
# File 'lib/development_mail_interceptor.rb', line 2 def self.delivering_email() .subject = "#{.to} #{.subject}" raise 'please set the DEVELOPER_EMAIL environment variable to catch emails' unless ENV['DEVELOPER_EMAIL'] .to = ENV['DEVELOPER_EMAIL'] end |