mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ef61c9c8a3
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. |
||
---|---|---|
.. | ||
attachment_test.rb | ||
content_test.rb | ||
fixture_set_test.rb | ||
model_test.rb | ||
plain_text_conversion_test.rb | ||
trix_attachment_test.rb |