gab-social/config/initializers/suppress_csrf_warnings.rb
rubic0n f77fa3ca4a 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.
2021-01-31 17:04:58 -06:00

4 lines
110 B
Ruby

# frozen_string_literal: true
Rails.application.config.action_controller.log_warning_on_csrf_failure = false