aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionview/lib/action_view/base.rb6
1 files changed, 5 insertions, 1 deletions
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)