1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_controller/metal
Aaron Patterson 1581cab9ff
Pass the template format to the digestor
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.
2019-02-15 17:27:33 -08:00
..
basic_implicit_render.rb Remove args from default_render 2019-01-17 14:33:14 -08:00
conditional_get.rb Use native Array#append, Array#prepend, Hash#transform_keys, and Hash#transform_keys! 2018-12-20 23:22:46 +09:00
content_security_policy.rb Always yield a CSP policy instance 2018-03-08 14:14:09 +00:00
cookies.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
data_streaming.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
default_headers.rb Include default headers by default in API mode 2018-04-06 15:13:28 -04:00
etag_with_flash.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
etag_with_template_digest.rb Pass the template format to the digestor 2019-02-15 17:27:33 -08:00
exceptions.rb Typo fixes action pack. 2019-01-26 17:15:50 +05:30
flash.rb Ensure external redirects are explicitly allowed 2019-01-17 13:28:14 -05:00
force_ssl.rb Revert ensure external redirects are explicitly allowed 2019-01-22 11:40:13 -05:00
head.rb Merge pull request #28937 from maclover7/jm-fix-28927 2018-07-31 15:54:23 -04:00
helpers.rb Tighten up the AV::Base constructor 2019-01-29 15:49:40 -08:00
http_authentication.rb Import Action Mailbox 2018-12-25 21:32:35 -05:00
implicit_render.rb Remove args from default_render 2019-01-17 14:33:14 -08:00
instrumentation.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
live.rb We don't want these internal methods as public methods in our controllers 2018-10-30 10:23:26 +09:00
mime_responds.rb Document that format.any can match all formats 2019-01-16 11:13:48 +01:00
parameter_encoding.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
params_wrapper.rb Capture parsing errors for ActionController::ParamsWrapper#process_action 2019-01-08 21:52:56 +00:00
redirecting.rb Revert ensure external redirects are explicitly allowed 2019-01-22 11:40:13 -05:00
renderers.rb Clarify intentions around method redefinitions 2017-09-01 14:27:13 +09:30
rendering.rb Enable Performance/UnfreezeString cop 2018-09-23 08:56:55 +09:00
request_forgery_protection.rb Convert over the rest of the whitelist references 2018-08-24 16:10:17 -04:00
rescue.rb Use tt in doc for ActionPack [ci skip] 2017-08-26 15:41:31 +09:00
streaming.rb [ci skip] update link 2017-12-15 10:15:04 +05:30
strong_parameters.rb Typo fixes action pack. 2019-01-26 17:15:50 +05:30
testing.rb Remove unused before_filters 2017-10-15 16:05:41 +09:00
url_for.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00