aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/active_text/engine.rb8
1 files changed, 8 insertions, 0 deletions
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