Remove redundant creation of an exception object
This commit is contained in:
parent
8b03371e10
commit
ec6e096274
1 changed files with 0 additions and 4 deletions
|
@ -360,10 +360,6 @@ class ApplicationController < ActionController::Base
|
|||
ex = ex.original_exception
|
||||
|
||||
if ex.is_a?(ActiveRecord::StatementInvalid) && ex.message =~ /execution expired/
|
||||
ex = Timeout::Error.new
|
||||
end
|
||||
|
||||
if ex.is_a?(Timeout::Error)
|
||||
render :action => "timeout"
|
||||
else
|
||||
raise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue