diff options
author | Sam Stephenson <sam@37signals.com> | 2015-12-14 17:57:39 -0600 |
---|---|---|
committer | Sam Stephenson <sam@37signals.com> | 2015-12-14 17:57:39 -0600 |
commit | 1a404abc03d5c3a731ba826d63fde149bc7c1d30 (patch) | |
tree | eb0077fcd290aa9f6a87d14fe726c0d318f40478 /actionview/lib/action_view | |
parent | dbf867cfcb4dac32bdb0b9491229fa8198ed8033 (diff) | |
download | rails-1a404abc03d5c3a731ba826d63fde149bc7c1d30.tar.gz rails-1a404abc03d5c3a731ba826d63fde149bc7c1d30.tar.bz2 rails-1a404abc03d5c3a731ba826d63fde149bc7c1d30.zip |
Remove ActionView::Helpers::CacheHelper#fragment_cache_key
Introduced in e56c63542780fe2fb804636a875f95cae08ab3f4, `CacheHelper#fragment_cache_key` is a duplicate of `ActionController::Caching::Fragments#fragment_cache_key`.
We now require the view to provide this method on its own (as with `view_cache_dependencies`); `ActionController::Caching::Fragments` exports its version as a `helper_method`.
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r-- | actionview/lib/action_view/helpers/cache_helper.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/actionview/lib/action_view/helpers/cache_helper.rb b/actionview/lib/action_view/helpers/cache_helper.rb index e473aeaea9..18b2102d73 100644 --- a/actionview/lib/action_view/helpers/cache_helper.rb +++ b/actionview/lib/action_view/helpers/cache_helper.rb @@ -216,14 +216,6 @@ module ActionView end end - # Given a key (as described in ActionController::Caching::Fragments.expire_fragment), - # returns a key suitable for use in reading, writing, or expiring a - # cached fragment. All keys are prefixed with <tt>views/</tt> and uses - # ActiveSupport::Cache.expand_cache_key for the expansion. - def fragment_cache_key(key) - ActiveSupport::Cache.expand_cache_key(key.is_a?(Hash) ? url_for(key).split("://").last : key, :views) - end - private def fragment_name_with_digest(name, virtual_path) #:nodoc: |