Skip to content
  • Jonathan Hefner's avatar
    dc121b06
    Fix rendering Action Text HTML in new threads · dc121b06
    Jonathan Hefner authored
    Because `ActionText::Content.renderer` is implemented as a
    `thread_cattr_accessor`, any default value set in the main thread will
    be inaccessible from other threads.  Therefore, use a `cattr_accessor`
    to store the default renderer, and fall back to it when `renderer` has
    not been set by e.g. `with_renderer`.
    
    Fixes #40757.
    dc121b06
    Fix rendering Action Text HTML in new threads
    Jonathan Hefner authored
    Because `ActionText::Content.renderer` is implemented as a
    `thread_cattr_accessor`, any default value set in the main thread will
    be inaccessible from other threads.  Therefore, use a `cattr_accessor`
    to store the default renderer, and fall back to it when `renderer` has
    not been set by e.g. `with_renderer`.
    
    Fixes #40757.
Loading