Skip to content
  • Eugene Kenny's avatar
    ebededb3
    Don't mutate raw_source in mailer preview interceptor · ebededb3
    Eugene Kenny authored
    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.
    ebededb3
    Don't mutate raw_source in mailer preview interceptor
    Eugene Kenny authored
    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.
Loading