X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7f3b86e30b09dc9d21cabf97248edbde08b12d4d..3a1b4cbe3396092efa2ea2c60cdbfb2a6ed6de0d:/config/initializers/bootstrap_form.rb diff --git a/config/initializers/bootstrap_form.rb b/config/initializers/bootstrap_form.rb index a61932c53..6c8cf4116 100644 --- a/config/initializers/bootstrap_form.rb +++ b/config/initializers/bootstrap_form.rb @@ -1,2 +1,4 @@ # Include our custom RichtextField input method for `f.richtext_field` in forms -BootstrapForm::FormBuilder.include BootstrapForm::Inputs::RichtextField +Rails.application.reloader.to_prepare do + BootstrapForm::FormBuilder.include BootstrapForm::Inputs::RichtextField +end