Merge pull request #6118 from betagouv/fix-autoloader-warning

Fix "Initialization autoloaded the constants ActionText::ContentHelper" warning message
This commit is contained in:
LeSim 2021-04-21 15:21:35 +02:00 committed by GitHub
commit 202309da20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View file

@ -49,7 +49,7 @@ gem 'kaminari', '1.2.1' # Pagination
gem 'listen' # Required by ActiveSupport::EventedFileUpdateChecker
gem 'lograge'
gem 'logstash-event'
gem 'mailjet'
gem 'mailjet', require: false
gem 'openid_connect'
gem 'pg'
gem 'phonelib'

View file

@ -1,5 +1,9 @@
Mailjet.configure do |config|
config.api_key = Rails.application.secrets.mailjet[:api_key]
config.secret_key = Rails.application.secrets.mailjet[:secret_key]
config.default_from = CONTACT_EMAIL
ActiveSupport.on_load(:action_mailer) do
require 'mailjet'
Mailjet.configure do |config|
config.api_key = Rails.application.secrets.mailjet[:api_key]
config.secret_key = Rails.application.secrets.mailjet[:secret_key]
config.default_from = CONTACT_EMAIL
end
end