mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
1581cab9ff
This commit passes the template format to the digestor in order to come up with a key. Before this commit, the digestor would depend on the side effect of the template renderer setting the rendered_format on the lookup context. I would like to remove that mutation, so I've changed this to pass the template format in to the digestor. I've introduced a new instance variable that will be alive during a template render. When the template is being rendered, it pushes the current template on to a stack, setting `@current_template` to the template currently being rendered. When the cache helper asks the digestor for a key, it uses the format of the template currently on the stack. |
||
---|---|---|
.. | ||
basic_implicit_render.rb | ||
conditional_get.rb | ||
content_security_policy.rb | ||
cookies.rb | ||
data_streaming.rb | ||
default_headers.rb | ||
etag_with_flash.rb | ||
etag_with_template_digest.rb | ||
exceptions.rb | ||
flash.rb | ||
force_ssl.rb | ||
head.rb | ||
helpers.rb | ||
http_authentication.rb | ||
implicit_render.rb | ||
instrumentation.rb | ||
live.rb | ||
mime_responds.rb | ||
parameter_encoding.rb | ||
params_wrapper.rb | ||
redirecting.rb | ||
renderers.rb | ||
rendering.rb | ||
request_forgery_protection.rb | ||
rescue.rb | ||
streaming.rb | ||
strong_parameters.rb | ||
testing.rb | ||
url_for.rb |