aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/mailers/caching_mailer.rb
blob: fa548b98e54128f8d765da762b3dd8b79965cdbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true
class CachingMailer < ActionMailer::Base
  self.mailer_name = "caching_mailer"

  def fragment_cache
    mail(subject: "welcome", template_name: "fragment_cache")
  end

  def fragment_cache_in_partials
    mail(subject: "welcome", template_name: "fragment_cache_in_partials")
  end

  def skip_fragment_cache_digesting
    mail(subject: "welcome", template_name: "skip_fragment_cache_digesting")
  end

  def fragment_caching_options
    mail(subject: "welcome", template_name: "fragment_caching_options")
  end

  def multipart_cache
    mail(subject: "welcome", template_name: "multipart_cache")
  end
end