diff options
author | Stan Lo <a22301613@yahoo.com.tw> | 2017-04-02 00:24:03 +0800 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2017-06-08 21:42:46 +0200 |
commit | 2abf6ca0c8304a3cfcdae6e14060b561780be43c (patch) | |
tree | 189b1f287e37b3c79ad2056ca659e8733fe88491 /actionview/test/fixtures | |
parent | f1e42fe267342ffa4cea84cf09b0caaee733632c (diff) | |
download | rails-2abf6ca0c8304a3cfcdae6e14060b561780be43c.tar.gz rails-2abf6ca0c8304a3cfcdae6e14060b561780be43c.tar.bz2 rails-2abf6ca0c8304a3cfcdae6e14060b561780be43c.zip |
Use a hash to record every partial's cache hit status instead of sharing a boolean.
Diffstat (limited to 'actionview/test/fixtures')
-rw-r--r-- | actionview/test/fixtures/test/_cached_nested_cached_customer.erb | 3 | ||||
-rw-r--r-- | actionview/test/fixtures/test/_nested_cached_customer.erb | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/actionview/test/fixtures/test/_cached_nested_cached_customer.erb b/actionview/test/fixtures/test/_cached_nested_cached_customer.erb new file mode 100644 index 0000000000..01bf025cd3 --- /dev/null +++ b/actionview/test/fixtures/test/_cached_nested_cached_customer.erb @@ -0,0 +1,3 @@ +<% cache cached_customer do %> + <%= render partial: "test/cached_customer", locals: { cached_customer: cached_customer } %> +<% end %> diff --git a/actionview/test/fixtures/test/_nested_cached_customer.erb b/actionview/test/fixtures/test/_nested_cached_customer.erb new file mode 100644 index 0000000000..f43adc94c9 --- /dev/null +++ b/actionview/test/fixtures/test/_nested_cached_customer.erb @@ -0,0 +1 @@ +<%= render partial: "test/cached_customer", locals: { cached_customer: cached_customer } %> |