From 199694bcb67a0a1a60de50d1122f5c09d2ea2376 Mon Sep 17 00:00:00 2001 From: Koen Punt Date: Tue, 12 Jul 2016 17:47:07 +0200 Subject: [PATCH] fixup! only include ActionViewExtensions when ActionView is loaded --- lib/simple_form/action_view_extensions/builder.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/simple_form/action_view_extensions/builder.rb b/lib/simple_form/action_view_extensions/builder.rb index 5748bc0d..a5c7eb0c 100644 --- a/lib/simple_form/action_view_extensions/builder.rb +++ b/lib/simple_form/action_view_extensions/builder.rb @@ -30,6 +30,8 @@ module SimpleForm end end -ActiveSupport.on_load(:action_view) do - ActionView::Helpers::FormBuilder.send :include, SimpleForm::ActionViewExtensions::Builder +module ActionView::Helpers + class FormBuilder + include SimpleForm::ActionViewExtensions::Builder + end end