1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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