Remove redundant creation of an exception object

This commit is contained in:
Tom Hughes 2016-12-02 09:38:18 +00:00
parent 8b03371e10
commit ec6e096274

View file

@ -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