agenda-libre-ruby/config/initializers/override_mail_recipient.rb

10 lines
257 B
Ruby
Raw Normal View History

# config/initializers/override_mail_recipient.rb
if Rails.env.development?
class OverrideMailRecipient
def self.delivering_email(mail)
mail.to = 'manu@localhost'
end
end
ActionMailer::Base.register_interceptor(OverrideMailRecipient)
end