Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change Mail#deliver! to also inform the interceptors

  • Loading branch information...
commit 74568ad9098b6c1007cb3623173c92a538851ca5 1 parent e124eed
@mikel mikel authored
Showing with 6 additions and 1 deletion.
  1. +4 −0 CHANGELOG.rdoc
  2. +2 −1  lib/mail/message.rb
View
4 CHANGELOG.rdoc
@@ -1,3 +1,7 @@
+== Thu Jan 24 00:56:36 UTC 2012 Mikel Lindsaar <mikel@reinteractive.net>
+
+* Change Mail#deliver! to also inform the interceptors
+
== Thu Jan 19 13:49:34 UTC 2012 Mikel Lindsaar <mikel@reinteractive.net>
* Fix non ascii character folding problems
View
3  lib/mail/message.rb
@@ -237,10 +237,11 @@ def deliver
# This method bypasses checking perform_deliveries and raise_delivery_errors,
# so use with caution.
#
- # It still however fires callbacks to the observers if they are defined.
+ # It still however fires off the intercepters and calls the observers callbacks if they are defined.
#
# Returns self
def deliver!
+ inform_interceptors
response = delivery_method.deliver!(self)
inform_observers
delivery_method.settings[:return_response] ? response : self
Please sign in to comment.
Something went wrong with that request. Please try again.