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 # 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

View file

@ -1,6 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
Doorkeeper.configure do Rails.application.reloader.to_prepare do
Doorkeeper.configure do
# Change the ORM that doorkeeper will use (requires ORM extensions installed). # 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 # Check the list of supported ORMs here: https://github.com/doorkeeper-gem/doorkeeper#orms
orm :active_record orm :active_record
@ -481,4 +482,5 @@ Doorkeeper.configure do
# WWW-Authenticate Realm (default: "Doorkeeper"). # WWW-Authenticate Realm (default: "Doorkeeper").
# #
# realm "Doorkeeper" # realm "Doorkeeper"
end
end end