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:
rubic0n 2021-01-29 23:12:53 -06:00
parent 2f95b0d67e
commit f77fa3ca4a
1 changed files with 1 additions and 1 deletions

View File

@ -1,3 +1,3 @@
# frozen_string_literal: true
ActionController::Base.log_warning_on_csrf_failure = false
Rails.application.config.action_controller.log_warning_on_csrf_failure = false