This website requires JavaScript.
Explore
Help
Sign In
kotovalexarian-likes-github
/
rails--rails
mirror of
https://github.com/rails/rails.git
Watch
1
Star
0
Fork
You've already forked rails--rails
0
Code
Releases
Activity
bf6456e053
rails--rails
/
actionpack
/
test
/
fixtures
/
collection_cache
/
index.html.erb
2 lines
82 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Make collection caching explicit. Having collection caching that wraps templates and automatically tries to infer if they are cachable proved to be too much of a hassle. We'd rather have it be something you explicitly turn on. This removes much of the code and docs to explain the previous automatic behavior. This change also removes scoped cache keys and passing cache_options.
2016-02-15 21:47:44 +00:00
<%= render partial: 'customers/customer', collection: @customers, cached: true %>