aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/fixtures/caching_mailer
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2016-02-24 00:08:34 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2016-02-24 00:09:07 -0300
commite40518f5d44303ed91641b342a53bdfb32753de3 (patch)
tree7eefe3de8272e2ecb8999173008c6e6a5f67f61b /actionmailer/test/fixtures/caching_mailer
parent685cf69793d7548c292b7bf9c1203f09f80f1beb (diff)
parent338750393d0f19b193f0ead26adff2b9f586ec18 (diff)
downloadrails-e40518f5d44303ed91641b342a53bdfb32753de3.tar.gz
rails-e40518f5d44303ed91641b342a53bdfb32753de3.tar.bz2
rails-e40518f5d44303ed91641b342a53bdfb32753de3.zip
Merge branch 'actionmailer-cache'
This is a rebased version of #22825. Closes #22825.
Diffstat (limited to 'actionmailer/test/fixtures/caching_mailer')
-rw-r--r--actionmailer/test/fixtures/caching_mailer/_partial.html.erb3
-rw-r--r--actionmailer/test/fixtures/caching_mailer/fragment_cache.html.erb3
-rw-r--r--actionmailer/test/fixtures/caching_mailer/fragment_cache_in_partials.html.erb1
-rw-r--r--actionmailer/test/fixtures/caching_mailer/skip_fragment_cache_digesting.html.erb3
4 files changed, 10 insertions, 0 deletions
diff --git a/actionmailer/test/fixtures/caching_mailer/_partial.html.erb b/actionmailer/test/fixtures/caching_mailer/_partial.html.erb
new file mode 100644
index 0000000000..8e965f52b4
--- /dev/null
+++ b/actionmailer/test/fixtures/caching_mailer/_partial.html.erb
@@ -0,0 +1,3 @@
+<% cache :caching do %>
+ Old fragment caching in a partial
+<% end %>
diff --git a/actionmailer/test/fixtures/caching_mailer/fragment_cache.html.erb b/actionmailer/test/fixtures/caching_mailer/fragment_cache.html.erb
new file mode 100644
index 0000000000..90189627da
--- /dev/null
+++ b/actionmailer/test/fixtures/caching_mailer/fragment_cache.html.erb
@@ -0,0 +1,3 @@
+<% cache :caching do %>
+"Welcome"
+<% end %>
diff --git a/actionmailer/test/fixtures/caching_mailer/fragment_cache_in_partials.html.erb b/actionmailer/test/fixtures/caching_mailer/fragment_cache_in_partials.html.erb
new file mode 100644
index 0000000000..2957d083e8
--- /dev/null
+++ b/actionmailer/test/fixtures/caching_mailer/fragment_cache_in_partials.html.erb
@@ -0,0 +1 @@
+<%= render "partial" %>
diff --git a/actionmailer/test/fixtures/caching_mailer/skip_fragment_cache_digesting.html.erb b/actionmailer/test/fixtures/caching_mailer/skip_fragment_cache_digesting.html.erb
new file mode 100644
index 0000000000..0d52429a81
--- /dev/null
+++ b/actionmailer/test/fixtures/caching_mailer/skip_fragment_cache_digesting.html.erb
@@ -0,0 +1,3 @@
+<%= cache :no_digest, skip_digest: true do %>
+ No Digest
+<% end %>