From 4d9814218edd5c0f8f7bac39aba459d3f6562701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= <15726+Senen@users.noreply.github.com> Date: Tue, 31 Jan 2023 18:18:49 +0100 Subject: [PATCH] Allow to add custom mailers In the same way we do for models, controllers ... --- app/mailers/custom/.keep | 0 config/application.rb | 1 + 2 files changed, 1 insertion(+) create mode 100644 app/mailers/custom/.keep diff --git a/app/mailers/custom/.keep b/app/mailers/custom/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/config/application.rb b/config/application.rb index 554a525dc..fa03205f4 100644 --- a/config/application.rb +++ b/config/application.rb @@ -133,6 +133,7 @@ module Consul config.autoload_paths << "#{Rails.root}/app/components/custom" config.autoload_paths << "#{Rails.root}/app/controllers/custom" config.autoload_paths << "#{Rails.root}/app/graphql/custom" + config.autoload_paths << "#{Rails.root}/app/mailers/custom" config.autoload_paths << "#{Rails.root}/app/models/custom" config.paths["app/views"].unshift(Rails.root.join("app", "views", "custom"))