9ad57fde2a
This fixes an error message on app startup about autoloaded constants: > DEPRECATION WARNING: Initialization autoloaded the constants ActionText::ContentHelper and ActionText::TagHelper. The reason for this error is that the Mailjet gem forces the immediate loading of `action_mailer`. Which leads to the following sequence of events: On app init, when bundler requires all the gems in the Gemfile: - The Mailjet gem is required, - It loads `ActionMailer::Base`. Later, when Rails initializes itself: - `ActionText` creates an `action_text.helpers` initializer, - This initializer register hooks to add `ActionText` helpers when either `action_controller_base` or `action_mailer` are loaded, - But as `action_mailer` has already been loaded, the hook is trigerred immediately, - ActiveSupport::Dependencies notices `ActionText` constants do not exist yet, auto-load them, and add the constants to `ActiveSupport::Dependencies.autoloaded_constants`. And even later, at the end of the Rails initialization process: - The `:warn_if_autoloaded` initializer is run, - It notices that `autoloaded_constants` is not empty, and prints the warning message. See https://github.com/mailjet/mailjet-gem/issues/213 |
||
---|---|---|
.. | ||
01_application_name.rb | ||
active_job_compatibility.rb | ||
active_job_log_subscriber.rb | ||
active_model_serializer.rb | ||
active_storage.rb | ||
after_party.rb | ||
application_controller_renderer.rb | ||
assets.rb | ||
authorized_content_types.rb | ||
backtrace_silencers.rb | ||
chartkick.rb | ||
contacts.rb | ||
content_security_policy.rb | ||
cookies_serializer.rb | ||
core_ext.rb | ||
date_select.rb | ||
devise.rb | ||
dynamic_smtp_settings_interceptor.rb | ||
env_vars.rb | ||
excon_setup.rb | ||
filter_parameter_logging.rb | ||
flipper.rb | ||
france_connect.rb | ||
geocoder.rb | ||
graphql.rb | ||
groupdate.rb | ||
images.rb | ||
inflections.rb | ||
lograge.rb | ||
mailjet.rb | ||
mime_types.rb | ||
open_id_connect.rb | ||
passwords.rb | ||
permissions_policy.rb | ||
pg_interval_5_2.rb | ||
phonelib.rb | ||
rack.rb | ||
rack_attack.rb | ||
rack_attack_request.rb | ||
rack_mini_profiler.rb | ||
saml_idp.rb | ||
sendinblue.rb | ||
sentry.rb | ||
session_store.rb | ||
smart_listing.rb | ||
typhoeus.rb | ||
urls.rb | ||
watermark.rb | ||
wrap_parameters.rb | ||
zxcvbn.rb | ||
zxcvbn_dictionnaries.yaml |