diff options
author | Guilherme Mansur <guilherme.mansur@shopify.com> | 2019-06-19 13:42:52 -0400 |
---|---|---|
committer | Guilherme Mansur <guilherme.mansur@shopify.com> | 2019-06-19 14:53:24 -0400 |
commit | 99e52ae7b1c621069f2971d2f352822f263efb49 (patch) | |
tree | 6cad6b4399e4298bbcc02117a0c7ea383a0b34c8 /activerecord/lib/active_record/model_schema.rb | |
parent | aae270de9e0862f31b14642908472d235a17936f (diff) | |
download | rails-99e52ae7b1c621069f2971d2f352822f263efb49.tar.gz rails-99e52ae7b1c621069f2971d2f352822f263efb49.tar.bz2 rails-99e52ae7b1c621069f2971d2f352822f263efb49.zip |
Autoload SyntaxErrorInTemplate
When a SyntaxError is detected in a template we raise this exception. On
a first request to the server the exception we get a NameError since the
exception is not required from `active_view/template/error.rb` yet.
However later on it gets required and a second request will succeed.
On the first request we see the rails "Something Wen Wrong" page and not
the expected syntax error in template error page with the webconsole and
stacktrace. By autoloading the constant we fix this issue.
Co-authored-by: Gannon McGibbon <gannon.mcgibbon@gmail.com>
Diffstat (limited to 'activerecord/lib/active_record/model_schema.rb')
0 files changed, 0 insertions, 0 deletions