Update for ActionView::Template::Error change
This commit is contained in:
parent
bda06347db
commit
cea455d390
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ class ApplicationController < ActionController::Base
|
|||
yield
|
||||
end
|
||||
rescue ActionView::Template::Error => ex
|
||||
ex = ex.original_exception
|
||||
ex = ex.cause
|
||||
|
||||
if ex.is_a?(Timeout::Error) ||
|
||||
(ex.is_a?(ActiveRecord::StatementInvalid) && ex.message =~ /execution expired/)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue