diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-10 14:14:17 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-10 14:14:17 -0800 |
commit | d887e46c2946eb1619f551420c5d076e31f9f919 (patch) | |
tree | ace760a85f43fe586d63f1f241750b6a4a04dc92 /actionmailer/lib/action_mailer | |
parent | be664392c030a2a0241616be764725f0e66d872b (diff) | |
download | rails-d887e46c2946eb1619f551420c5d076e31f9f919.tar.gz rails-d887e46c2946eb1619f551420c5d076e31f9f919.tar.bz2 rails-d887e46c2946eb1619f551420c5d076e31f9f919.zip |
Be sure to invoke the super chain! And initialize response body.
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index 6a5a598f94..bef9bb8e79 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -452,6 +452,8 @@ module ActionMailer #: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 |