diff options
author | Gannon McGibbon <gannon.mcgibbon@gmail.com> | 2019-06-19 15:05:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-19 15:05:46 -0400 |
commit | 75eb9494d897a30e41c63ee6ae266bb9b7c66140 (patch) | |
tree | fb440bde97c03755836316d8a502530eddd60cb0 /actionview | |
parent | 2dea8c29c794bec564a2e69ad715d25024e93932 (diff) | |
parent | 99e52ae7b1c621069f2971d2f352822f263efb49 (diff) | |
download | rails-75eb9494d897a30e41c63ee6ae266bb9b7c66140.tar.gz rails-75eb9494d897a30e41c63ee6ae266bb9b7c66140.tar.bz2 rails-75eb9494d897a30e41c63ee6ae266bb9b7c66140.zip |
Merge pull request #36521 from itsWill/autoloading_in_exceptions
Autoload SyntaxErrorInTemplate
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/CHANGELOG.md | 4 | ||||
-rw-r--r-- | actionview/lib/action_view.rb | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index c663ec3bbc..f2f57e6a36 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -1,3 +1,7 @@ +* Add autoload for SyntaxErrorInTemplate so syntax errors are correctly raised by DebugExceptions. + + *Guilherme Mansur*, *Gannon McGibbon* + * `RenderingHelper` supports rendering objects that `respond_to?` `:render_in` *Joel Hawksley*, *Natasha Umer*, *Aaron Patterson*, *Shawn Allen*, *Emily Plummer*, *Diana Mounter*, *John Hawthorn*, *Nathan Herald*, *Zaid Zawaideh*, *Zach Ahn* diff --git a/actionview/lib/action_view.rb b/actionview/lib/action_view.rb index 7f85bf2a5e..11b4563548 100644 --- a/actionview/lib/action_view.rb +++ b/actionview/lib/action_view.rb @@ -77,6 +77,7 @@ module ActionView autoload :ActionViewError autoload :EncodingError autoload :TemplateError + autoload :SyntaxErrorInTemplate autoload :WrongEncodingError end end |