]> git.openstreetmap.org Git - rails.git/blob - config/initializers/bootstrap_form.rb
Merge remote-tracking branch 'upstream/pull/7068'
[rails.git] / config / initializers / bootstrap_form.rb
1 # frozen_string_literal: true
2
3 # Include our custom RichtextField input method for `f.richtext_field` in forms
4 Rails.application.reloader.to_prepare do
5   BootstrapForm::FormBuilder.include BootstrapForm::Inputs::RichtextField
6 end
7
8 BootstrapForm.configure do |config|
9   # As of writing these lines, if this is not set it will behave differently
10   # in dev and prod. See https://github.com/bootstrap-ruby/bootstrap_form/pull/779
11   #
12   # Additionally, a `true` setting will generate markup more conformant
13   # with WAI-ARIA, which hopefully will be more accessible.
14   config.group_around_collections = true
15 end