aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/abstract_unit.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2019-02-01 16:10:02 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2019-02-01 16:19:53 -0800
commit28f88e0074f473f58c2d3fd54cb3daff81027c12 (patch)
tree17e727ed04f69bc63c1408cfc3a95a0d6063b359 /actionview/test/abstract_unit.rb
parent2169bd3d2a9d2f331a5dd6e41d9d638e0da6117c (diff)
downloadrails-28f88e0074f473f58c2d3fd54cb3daff81027c12.tar.gz
rails-28f88e0074f473f58c2d3fd54cb3daff81027c12.tar.bz2
rails-28f88e0074f473f58c2d3fd54cb3daff81027c12.zip
Pass source to template handler and deprecate old style handler
This commit passes the mutated source to the template handler as a parameter and deprecates the old handlers. Old handlers required that templates contain a reference to mutated source code, but we would like to make template objects "read only". This change lets the template remain "read only" while still giving template handlers access to the source code after mutations.
Diffstat (limited to 'actionview/test/abstract_unit.rb')
-rw-r--r--actionview/test/abstract_unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/abstract_unit.rb b/actionview/test/abstract_unit.rb
index 56d617309c..acc2ed029b 100644
--- a/actionview/test/abstract_unit.rb
+++ b/actionview/test/abstract_unit.rb
@@ -58,7 +58,7 @@ module RenderERBUtils
template = ActionView::Template.new(
string.strip,
"test template",
- ActionView::Template::Handlers::ERB,
+ ActionView::Template.handler_for_extension(:erb),
{})
template.render(ActionView::Base.empty, {}).strip