Fix autoloading in initialization
DEPRECATION WARNING: Initialization autoloaded the constants ActionText::ContentHelper and ActionText::TagHelper. https://github.com/rails/rails/issues/36546 Rails has a Railtie that will take the config setting out of Rails config, and put it onto ActionController when ActionController is loaded. Calling ActionController in the initializer forces it to autoload right now. Referencing the setting through the config allows it to autoload in when it needs to.
This commit is contained in:
parent
2f95b0d67e
commit
f77fa3ca4a
|
@ -1,3 +1,3 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
ActionController::Base.log_warning_on_csrf_failure = false
|
Rails.application.config.action_controller.log_warning_on_csrf_failure = false
|
||||||
|
|
Loading…
Reference in New Issue