Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ActiveSupport load hook for ActionText::EncryptedRichText #47737

Merged
merged 1 commit into from
Mar 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions actiontext/app/models/action_text/encrypted_rich_text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ class EncryptedRichText < RichText
encrypts :body
end
end

ActiveSupport.run_load_hooks :action_text_encrypted_rich_text, ActionText::EncryptedRichText
1 change: 1 addition & 0 deletions guides/source/engines.md
Original file line number Diff line number Diff line change
Expand Up @@ -1488,6 +1488,7 @@ These are the load hooks you can use in your own code. To hook into the initiali
| `ActionText::Content` | `action_text_content` |
| `ActionText::Record` | `action_text_record` |
| `ActionText::RichText` | `action_text_rich_text` |
| `ActionText::EncryptedRichText` | `action_text_encrypted_rich_text` |
| `ActionView::Base` | `action_view` |
| `ActionView::TestCase` | `action_view_test_case` |
| `ActiveJob::Base` | `active_job` |
Expand Down