aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2019-01-07 17:04:58 -0500
committerGeorge Claghorn <george@basecamp.com>2019-01-07 17:04:58 -0500
commit29bb990f97816f3e0fb086ec9985983c51a56a96 (patch)
treea8da003670d1db03963ef660c46873a334a68031
parentcd16413ef3280a50c1b13b1ed7be1a907fad88d1 (diff)
downloadrails-29bb990f97816f3e0fb086ec9985983c51a56a96.tar.gz
rails-29bb990f97816f3e0fb086ec9985983c51a56a96.tar.bz2
rails-29bb990f97816f3e0fb086ec9985983c51a56a96.zip
Add load hook for ActionText::RichText
-rw-r--r--actiontext/app/models/action_text/rich_text.rb2
-rw-r--r--guides/source/engines.md1
2 files changed, 3 insertions, 0 deletions
diff --git a/actiontext/app/models/action_text/rich_text.rb b/actiontext/app/models/action_text/rich_text.rb
index a577c991b9..705dd30983 100644
--- a/actiontext/app/models/action_text/rich_text.rb
+++ b/actiontext/app/models/action_text/rich_text.rb
@@ -25,3 +25,5 @@ module ActionText
delegate :blank?, :empty?, :present?, to: :to_plain_text
end
end
+
+ActiveSupport.run_load_hooks :action_text_rich_text, ActionText::RichText
diff --git a/guides/source/engines.md b/guides/source/engines.md
index 9558225b47..c4829299ca 100644
--- a/guides/source/engines.md
+++ b/guides/source/engines.md
@@ -1511,6 +1511,7 @@ To hook into the initialization process of one of the following classes use the
| `ActionMailer::Base` | `action_mailer` |
| `ActionMailer::TestCase` | `action_mailer_test_case` |
| `ActionText::Content` | `action_text_content` |
+| `ActionText::RichText` | `action_text_rich_text` |
| `ActionView::Base` | `action_view` |
| `ActionView::TestCase` | `action_view_test_case` |
| `ActiveJob::Base` | `active_job` |