aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2019-01-24 13:59:26 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2019-02-06 16:57:34 -0800
commit9aa9b6d6e12b1b900f783abc40f50e4771f55d6f (patch)
treefbd09b1d196dc370068b9a0877e5b748a6787f10 /actionview
parent7761ddbebb5627769cd9fa9d9f1ff5a072716b47 (diff)
downloadrails-9aa9b6d6e12b1b900f783abc40f50e4771f55d6f.tar.gz
rails-9aa9b6d6e12b1b900f783abc40f50e4771f55d6f.tar.bz2
rails-9aa9b6d6e12b1b900f783abc40f50e4771f55d6f.zip
Add a message to help allocate AV::Base instances
Diffstat (limited to 'actionview')
-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)