rails/actiontext/lib
Jonathan Hefner 763941e81b Always provide a fallback renderer for Action Text
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>
2022-09-23 14:36:04 -05:00
..
action_text Always provide a fallback renderer for Action Text 2022-09-23 14:36:04 -05:00
generators/action_text/install Import actiontext.css when actiontext is installed 2021-10-13 16:23:04 -05:00
rails/generators/test_unit Create ActionText install generator 2019-11-15 08:58:11 -05:00
tasks Add ActionText installer rake task back after changes in #35085. Forwards the installer to run new ActionText generator 2019-12-16 23:27:24 +05:30
action_text.rb Removes the Action Text dependency from Active Record 2021-04-01 15:02:15 +02:00