Don't mutate raw_source in mailer preview interceptor
The raw_source method is documented as returning the exact value that was used to create the body; mutating it breaks that contract. Additionally, if the value used to create the body is blank, raw_source returns a frozen string which causes the interceptor to raise an error.
Showing
想要评论请 注册 或 登录