From c740ebdaf580c8c9772a9099c7a9c11ef3105f3a Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 16 Jan 2019 17:28:03 -0800 Subject: Always evaluate views against an ActionView::Base Methods created by views should always be evaluated against an AV::Base instance. This way we can extract and refactor things in to classes. --- actionview/test/template/template_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionview/test/template') diff --git a/actionview/test/template/template_test.rb b/actionview/test/template/template_test.rb index b348d1f17b..8257d97b7c 100644 --- a/actionview/test/template/template_test.rb +++ b/actionview/test/template/template_test.rb @@ -18,7 +18,7 @@ class TestERBTemplate < ActiveSupport::TestCase attr_accessor :formats end - class Context + class Context < ActionView::Base def initialize @output_buffer = "original" @virtual_path = nil -- cgit v1.2.3