aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2019-02-25 15:14:53 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2019-02-25 15:14:53 -0800
commitd4015a7f0609f12a5f7be4c794e5c5eaf2c748d5 (patch)
treee7dec5d02c596de76602c623032020cd7edeb27c /actionpack
parenta92e5eb4ae566b973ebb6fcf85d9d4d6e6fffcb0 (diff)
downloadrails-d4015a7f0609f12a5f7be4c794e5c5eaf2c748d5.tar.gz
rails-d4015a7f0609f12a5f7be4c794e5c5eaf2c748d5.tar.bz2
rails-d4015a7f0609f12a5f7be4c794e5c5eaf2c748d5.zip
Pass locals in to the template object on construction
This commit ensures that locals are passed in to the template objects when they are constructed, then removes the `locals=` mutator on the template object. This means we don't need to mutate Template objects with locals in the `decorate` method.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/dispatch/debug_exceptions_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/debug_exceptions_test.rb b/actionpack/test/dispatch/debug_exceptions_test.rb
index c33b0e1c14..c85476fa38 100644
--- a/actionpack/test/dispatch/debug_exceptions_test.rb
+++ b/actionpack/test/dispatch/debug_exceptions_test.rb
@@ -39,7 +39,7 @@ class DebugExceptionsTest < ActionDispatch::IntegrationTest
def call(env)
env["action_dispatch.show_detailed_exceptions"] = @detailed
req = ActionDispatch::Request.new(env)
- template = ActionView::Template.new(File.read(__FILE__), __FILE__, ActionView::Template::Handlers::Raw.new, format: :html)
+ template = ActionView::Template.new(File.read(__FILE__), __FILE__, ActionView::Template::Handlers::Raw.new, format: :html, locals: [])
case req.path
when "/pass"