763941e81b
Follow-up to #45144. This ensures that a renderer is always available for Action Text, even when `ActionController::Base` was not previously loaded. Fixes #46113. As with #45144, this still avoids loading `ActionController::Base` unnecessarily when rendering mail after Action Text has been loaded. **Before:** ``` $ bin/rails r 'Benchmark.memory { |x| x.report("load"){ MyBlankMailer.blank_email.body } }' Calculating ------------------------------------- load 4.466M memsize ( 1.205M retained) 29.202k objects ( 11.943k retained) 50.000 strings ( 50.000 retained) ``` **After:** ``` $ bin/rails r 'Benchmark.memory { |x| x.report("load"){ MyBlankMailer.blank_email.body } }' Calculating ------------------------------------- load 4.462M memsize ( 1.205M retained) 29.141k objects ( 11.940k retained) 50.000 strings ( 50.000 retained) ``` Co-authored-by: Christopher Louvet <cl@nonplaces.com> |
||
---|---|---|
.. | ||
action_text | ||
generators/action_text/install | ||
rails/generators/test_unit | ||
tasks | ||
action_text.rb |