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_dispatch/middleware
Aaron Patterson 2b6d2d2037
Turn lookup context in to a stack, push and pop if formats change
This commit keeps a stack of lookup contexts on the ActionView::Base
instance.  If a format is passed to render, we instantiate a new lookup
context and push it on the stack, that way any child calls to "render"
will use the same format information as the parent.  This also isolates
"sibling" calls to render (multiple calls to render in the same
template).

Fixes #35222 #34138
2019-02-11 17:55:59 -08:00
..
session Remove secret_token rack env and cookie upgrade code 2019-01-17 16:08:34 -05:00
templates fix NameError 2019-02-05 20:13:23 +09:00
callbacks.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
cookies.rb Cookie doesn't expire anymore unless a flag is set: 2019-02-04 14:25:17 +01:00
debug_exceptions.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
debug_locks.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
debug_view.rb Turn lookup context in to a stack, push and pop if formats change 2019-02-11 17:55:59 -08:00
exception_wrapper.rb Fixed a bug where the debug view does not show the error page properly 2019-01-24 20:30:20 -05:00
executor.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
flash.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
host_authorization.rb Cleanup the whitelisting references after #33145 2019-02-03 10:58:10 +02:00
public_exceptions.rb Use tt in doc for ActionPack [ci skip] 2017-08-26 15:41:31 +09:00
reloader.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
remote_ip.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
request_id.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
show_exceptions.rb Fixed a bug where the debug view does not show the error page properly 2019-01-24 20:30:20 -05:00
ssl.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
stack.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
static.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00