Skip to content
  • Piotr Sarnacki's avatar
    1eb61894
    Fix #5440 - multiple render_to_string breaks partials formats · 1eb61894
    Piotr Sarnacki authored
    This fixes situation where rendering template to string
    sets `rendered_format` to the format rendered there.
    This is ok to have consistent formats rendered in partials,
    but it breaks on next renders if format is explicitly set
    or on last render where default format does not necessarily
    need to be the format of first rendered template.
    1eb61894
    Fix #5440 - multiple render_to_string breaks partials formats
    Piotr Sarnacki authored
    This fixes situation where rendering template to string
    sets `rendered_format` to the format rendered there.
    This is ok to have consistent formats rendered in partials,
    but it breaks on next renders if format is explicitly set
    or on last render where default format does not necessarily
    need to be the format of first rendered template.
Loading