2014-05-25 23:59:03 +02:00
|
|
|
# config/initializers/override_mail_recipient.rb
|
|
|
|
if Rails.env.development?
|
2014-08-06 14:47:47 +02:00
|
|
|
# During development, we don't really send mails to the outside world
|
2014-05-25 23:59:03 +02:00
|
|
|
class OverrideMailRecipient
|
|
|
|
def self.delivering_email(mail)
|
|
|
|
mail.to = 'manu@localhost'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
ActionMailer::Base.register_interceptor(OverrideMailRecipient)
|
|
|
|
end
|