1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
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
..
abstract Module#{define_method,alias_method,undef_method,remove_method} become public since Ruby 2.5 2018-12-21 01:39:18 +09:00
assertions
controller Pass the template format to the digestor 2019-02-15 17:27:33 -08:00
dispatch Support testing of non-ActionDispatch-routed apps. 2019-02-05 20:25:39 -08:00
fixtures Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
journey Restrict matching with word boundary or end of string 2019-02-05 14:13:38 +02:00
lib/controller
routing
abstract_unit.rb Use Testing::Parallelization in Action Packs's test 2018-11-28 16:10:14 +09:00