From 63add5acc4a9bd84907bf6bf17de307792336539 Mon Sep 17 00:00:00 2001 From: Javan Makhmali Date: Mon, 12 Feb 2018 10:16:49 -0500 Subject: Extract BC3's rich_text_field helper --- lib/active_text/engine.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/active_text/engine.rb') diff --git a/lib/active_text/engine.rb b/lib/active_text/engine.rb index 3f076ab321..5b16acab04 100644 --- a/lib/active_text/engine.rb +++ b/lib/active_text/engine.rb @@ -10,5 +10,13 @@ module ActiveText include ActiveText::Attribute end end + + # FIXME: Aren't helpers supposed to load automatically? + # https://github.com/rails/rails/issues/26627 ? + initializer "active_text.helper" do + ActiveSupport.on_load(:action_controller_base) do + helper ActiveText::TagHelper + end + end end end -- cgit v1.2.3