2017-07-23 11:17:16 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-12-23 03:01:32 -05:00
|
|
|
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
|
2016-04-17 09:14:15 -04:00
|
|
|
|
|
|
|
def fragment_caching_options
|
|
|
|
mail(subject: "welcome", template_name: "fragment_caching_options")
|
|
|
|
end
|
|
|
|
|
|
|
|
def multipart_cache
|
|
|
|
mail(subject: "welcome", template_name: "multipart_cache")
|
|
|
|
end
|
2015-12-23 03:01:32 -05:00
|
|
|
end
|