From 9aa9b6d6e12b1b900f783abc40f50e4771f55d6f Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 24 Jan 2019 13:59:26 -0800 Subject: Add a message to help allocate AV::Base instances --- actionview/lib/action_view/base.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'actionview') diff --git a/actionview/lib/action_view/base.rb b/actionview/lib/action_view/base.rb index 71aa68499d..df87de4406 100644 --- a/actionview/lib/action_view/base.rb +++ b/actionview/lib/action_view/base.rb @@ -268,7 +268,11 @@ module ActionView #:nodoc: end def compiled_method_container - raise NotImplementedError + raise NotImplementedError, <<~msg + Subclasses of ActionView::Base must implement `compiled_method_container` + or use the class method `with_empty_template_cache` for constructing + an ActionView::Base subclass thata has an empty cache. + msg end ActiveSupport.run_load_hooks(:action_view, self) -- cgit v1.2.3