1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
require 'action_dispatch/caching' module ActionMailer module Caching extend ActiveSupport::Autoload extend ActiveSupport::Concern included do include ActionDispatch::Caching end def perform_caching Base.perform_caching end def controller_name "ActionMailer" end end end