1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test/activerecord
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
..
controller_runtime_test.rb Add allocations to template renderer subscription 2018-10-10 08:07:12 -04:00
debug_helper_test.rb Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
form_helper_activerecord_test.rb Merge pull request #33973 from rails/remove-catch-all 2018-09-25 09:27:37 -07:00
multifetch_cache_test.rb Move templates to an anonymous subclass of AV::Base 2019-02-06 16:52:15 -08:00
polymorphic_routes_test.rb Fix more offences 2018-09-25 13:21:40 -04:00
relation_cache_test.rb Pass the template format to the digestor 2019-02-15 17:27:33 -08:00
render_partial_with_record_identification_test.rb Remove deprecated catch-all route in the AV tests 2018-09-24 15:39:15 -07:00