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

This commit is contained in:
Jeremy Kemper 2009-11-10 14:14:17 -08:00
parent be664392c0
commit d887e46c29
1 changed files with 2 additions and 0 deletions

View File

@ -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