1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/test/mailers/caching_mailer.rb

15 lines
407 B
Ruby

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
end