Skip to content

Commit

Permalink
Change Mail#deliver! to also inform the interceptors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikel Lindsaar committed Jan 24, 2012
1 parent e124eed commit 74568ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions 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
Expand Down
3 changes: 2 additions & 1 deletion lib/mail/message.rb
Expand Up @@ -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
Expand Down

0 comments on commit 74568ad

Please sign in to comment.