molten-trunk/molten5_withgrid/vendor/plugins/exception_notification/lib/exception_notifiable.rb
def rescue_action_in_public(exception)
    case exception
      when ActiveRecord::RecordNotFound, ActionController::UnknownController, ActionController::UnknownAction, ActionController::RoutingError
        render_404

      else    
        @time = Time.now
        @case_number = @time.strftime("%y%m%d-%H%M%S")
        @exception = exception      
        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
# Modified to render a custom error page
Modified to render a custom error page
Modified to render a custom error page
def rescue_action_in_public(exception)
    case exception
      when ActiveRecord::RecordNotFound, ActionController::UnknownController, ActionController::UnknownAction, ActionController::RoutingError
        render_404
      else    
        @time = Time.now
        @case_number = @time.strftime("%y%m%d-%H%M%S")
        @exception = exception      
        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
def rescue_action_in_public ( exception ) case exception when ActiveRecord :: RecordNotFound , ActionController :: UnknownController , ActionController :: UnknownAction , ActionController :: RoutingError render_404 else @time = Time . now @case_number = @time . strftime ( "%y%m%d-%H%M%S" ) @exception = exception 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
Modified to render a custom error page
Modified to render a custom error page
exception