Fix boot warnings for autoloaded constants in initializers

This commit is contained in:
Tom Hughes 2021-11-16 19:08:26 +00:00
parent 02fb858956
commit ad0cfee788
2 changed files with 484 additions and 480 deletions

View file

@ -1,2 +1,4 @@
# Include our custom RichtextField input method for `f.richtext_field` in forms
Rails.application.reloader.to_prepare do
BootstrapForm::FormBuilder.include BootstrapForm::Inputs::RichtextField
end

View file

@ -1,5 +1,6 @@
# frozen_string_literal: true
Rails.application.reloader.to_prepare do
Doorkeeper.configure do
# Change the ORM that doorkeeper will use (requires ORM extensions installed).
# Check the list of supported ORMs here: https://github.com/doorkeeper-gem/doorkeeper#orms
@ -482,3 +483,4 @@ Doorkeeper.configure do
#
# realm "Doorkeeper"
end
end