diff options
author | Aaron Patterson <tenderlove@github.com> | 2019-01-30 11:57:47 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-30 11:57:47 -0800 |
commit | 535a8b995700a5875a898691b19b88969c22d264 (patch) | |
tree | 536c260987f394bbcb650c20fe401b89ec30443a /actionpack | |
parent | 8ca6bd2e942f9a2652ec20c0c419e9b08f25c2e1 (diff) | |
parent | e17fe52e0e0ef0842b6c409e1110a862c4e005bc (diff) | |
download | rails-535a8b995700a5875a898691b19b88969c22d264.tar.gz rails-535a8b995700a5875a898691b19b88969c22d264.tar.bz2 rails-535a8b995700a5875a898691b19b88969c22d264.zip |
Merge pull request #35093 from rails/av-base-constructor
Tighten up the AV::Base constructor
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/metal/helpers.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/debug_view.rb | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal/helpers.rb b/actionpack/lib/action_controller/metal/helpers.rb index 0faaac1ce4..f1fb7ab0f7 100644 --- a/actionpack/lib/action_controller/metal/helpers.rb +++ b/actionpack/lib/action_controller/metal/helpers.rb @@ -75,7 +75,7 @@ module ActionController # Provides a proxy to access helper methods from outside the view. def helpers @helper_proxy ||= begin - proxy = ActionView::Base.new + proxy = ActionView::Base.empty proxy.config = config.inheritable_copy proxy.extend(_helpers) end diff --git a/actionpack/lib/action_dispatch/middleware/debug_view.rb b/actionpack/lib/action_dispatch/middleware/debug_view.rb index ac12dc13a1..5a7010a1c2 100644 --- a/actionpack/lib/action_dispatch/middleware/debug_view.rb +++ b/actionpack/lib/action_dispatch/middleware/debug_view.rb @@ -10,7 +10,9 @@ module ActionDispatch RESCUES_TEMPLATE_PATH = File.expand_path("templates", __dir__) def initialize(assigns) - super([RESCUES_TEMPLATE_PATH], assigns) + paths = [RESCUES_TEMPLATE_PATH] + renderer = ActionView::Renderer.new ActionView::LookupContext.new(paths) + super(renderer, assigns) end def debug_params(params) |