From 29bb990f97816f3e0fb086ec9985983c51a56a96 Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Mon, 7 Jan 2019 17:04:58 -0500 Subject: Add load hook for ActionText::RichText --- actiontext/app/models/action_text/rich_text.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actiontext/app') 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 -- cgit v1.2.3