# File vendor/plugins/exception_notification/lib/exception_notifiable.rb, line 72 def rescue_action_in_public(exception) case exception when *exceptions_to_treat_as_404 render_404 else render_500 deliverer = self.class.exception_data data = case deliverer when nil then {} when Symbol then send(deliverer) when Proc then deliverer.call(self) end ExceptionNotifier.deliver_exception_notification(exception, self, request, data) end end