]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/bootstrap_form.rb
Rename 'keyid' layer option to 'layerId'
[rails.git] / config / initializers / bootstrap_form.rb
index a61932c53435ab187f3ff304678eb743c6e0227a..6c8cf411684328d219a30859fd6fe0f89b38da69 100644 (file)
@@ -1,2 +1,4 @@
 # Include our custom RichtextField input method for `f.richtext_field` in forms
 # 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