ActionController::UnknownAction hangs application

I’m trying to override rescue_action_in_public() using the PP example,
but my application hangs every time I generate an error.

def rescue_action_in_public(exception)
case exception.class
when ActiveRecord::RecordNotFound,
ActionController::UnknownAction
render( :file => “#{RAILS_ROOT}/public/404.html”,
:status => “404 Not Found”)
else
render( :file => “#{RAILS_ROOT}/public/500.html”,
:status => “500 Error”)
email = SystemNotifier.deliver_exception_notification(
self, request, exception)
end
end

If I change line 3 to

   when ActiveRecord::RecordNotFound

everything works just fine. This suggests that the application is
choking while comparing exception.class (which can be anything, I’ve
tried both core and user errors) to ActionController::UnknownAction.

Note: I originally had line 2 as ‘case exception’ but it didn’t work
either. I figured this was more readable, and I was trying to simplify.

Any suggestions are appreciated in advance!