From 837e40dcac023319a0bfc38240761d4352b73b99 Mon Sep 17 00:00:00 2001 From: Dave Gynn Date: Sat, 26 Dec 2015 22:25:27 -0800 Subject: restore ability to pass extra options to cache stores The `cache` helper methods should pass any extra options to the cache store. For example :expires_in would be a valid option if memcache was the cache store. The change in commit da16745 broke the ability to pass any options other than :skip_digest and :virtual_path. This PR restores that functionality and adds a test for it. --- .../fixtures/functional_caching/fragment_cached_with_options.html.erb | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 actionpack/test/fixtures/functional_caching/fragment_cached_with_options.html.erb (limited to 'actionpack/test/fixtures') diff --git a/actionpack/test/fixtures/functional_caching/fragment_cached_with_options.html.erb b/actionpack/test/fixtures/functional_caching/fragment_cached_with_options.html.erb new file mode 100644 index 0000000000..6865df9b7e --- /dev/null +++ b/actionpack/test/fixtures/functional_caching/fragment_cached_with_options.html.erb @@ -0,0 +1,3 @@ + +<%= cache 'with_options', :skip_digest => true, :expires_in => 1.minute do %>

ERB

<% end %> + -- cgit v1.2.3