Skip to content
Browse files

Be sure to invoke the super chain! And initialize response body.

  • Loading branch information...
1 parent be66439 commit d887e46c2946eb1619f551420c5d076e31f9f919 @jeremy jeremy committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionmailer/lib/action_mailer/base.rb
View
2 actionmailer/lib/action_mailer/base.rb
@@ -452,6 +452,8 @@ def matches_dynamic_method?(method_name) #:nodoc:
# remain uninitialized (useful when you only need to invoke the "receive"
# method, for instance).
def initialize(method_name=nil, *parameters) #:nodoc:
+ @_response_body = nil
+ super()
create!(method_name, *parameters) if method_name
end

0 comments on commit d887e46

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