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
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
..
api Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
metal Pass the template format to the digestor 2019-02-15 17:27:33 -08:00
railties Fix call sites 2018-10-02 15:31:29 -04:00
api.rb ActionController::API *does* support cookies, sessions 2018-10-25 10:36:39 -05:00
base.rb Add quotes to code in rdoc comment in ActionController [ci skip] 2018-04-30 21:35:51 -04:00
caching.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
form_builder.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
log_subscriber.rb colorize the unpermitted params log message 2018-12-03 19:40:46 -05:00
metal.rb Remove code duplication for ActionController::Metal.action 2018-01-22 15:57:25 +02:00
railtie.rb [Action Pack] require => require_relative 2017-10-21 22:48:28 +09:00
renderer.rb Use native Array#append, Array#prepend, Hash#transform_keys, and Hash#transform_keys! 2018-12-20 23:22:46 +09:00
template_assertions.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
test_case.rb Update the promisse that ActionController::TestCase will be extracted 2019-01-17 16:08:09 -05:00