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:
parent
be664392c0
commit
d887e46c29
1 changed files with 2 additions and 0 deletions
|
@ -452,6 +452,8 @@ module ActionMailer #:nodoc:
|
||||||
# remain uninitialized (useful when you only need to invoke the "receive"
|
# remain uninitialized (useful when you only need to invoke the "receive"
|
||||||
# method, for instance).
|
# method, for instance).
|
||||||
def initialize(method_name=nil, *parameters) #:nodoc:
|
def initialize(method_name=nil, *parameters) #:nodoc:
|
||||||
|
@_response_body = nil
|
||||||
|
super()
|
||||||
create!(method_name, *parameters) if method_name
|
create!(method_name, *parameters) if method_name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue