Skip to content
Browse files

Returns the mail when delivered, for the tests

  • Loading branch information...
1 parent 94ba52d commit 9c608f9f3468dcdc613ff185700f24b4b6f869fd @carlhoerberg committed Jun 1, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/rack/contrib/mailexceptions.rb
View
1 lib/rack/contrib/mailexceptions.rb
@@ -68,6 +68,7 @@ def send_notification(exception, env)
mail.delivery_method :smtp, smtp
mail.deliver!
env['mail.sent'] = true
+ mail
end
def extract_body(env)

0 comments on commit 9c608f9

Please sign in to comment.
Something went wrong with that request. Please try again.