1 # frozen_string_literal: true
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
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
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