<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -46,6 +46,14 @@ module ExceptionNotifiable
         write_inheritable_attribute(:exception_data, deliverer)
       end
     end
+
+    def exceptions_to_treat_as_404
+      exceptions = [ActiveRecord::RecordNotFound,
+                    ActionController::UnknownController,
+                    ActionController::UnknownAction]
+      exceptions &lt;&lt; ActionController::RoutingError if ActionController.const_defined?(:RoutingError)
+      exceptions
+    end
   end
 
   private
@@ -71,7 +79,7 @@ module ExceptionNotifiable
 
     def rescue_action_in_public(exception)
       case exception
-        when *exceptions_to_treat_as_404
+        when *self.class.exceptions_to_treat_as_404
           render_404
 
         else          
@@ -88,12 +96,4 @@ module ExceptionNotifiable
             request, data)
       end
     end
-
-    def exceptions_to_treat_as_404
-      exceptions = [ActiveRecord::RecordNotFound,
-                    ActionController::UnknownController,
-                    ActionController::UnknownAction]
-      exceptions &lt;&lt; ActionController::RoutingError if ActionController.const_defined?(:RoutingError)
-      exceptions
-    end
 end</diff>
      <filename>lib/exception_notifiable.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f00c3bf26163b032d924de7d008901a1c7f985a1</id>
    </parent>
  </parents>
  <author>
    <name>Jamis Buck</name>
    <email>jamis@37signals.com</email>
  </author>
  <url>http://github.com/rails/exception_notification/commit/0a43ee9c9b713fe93210ea3894f2f688fabc52cb</url>
  <id>0a43ee9c9b713fe93210ea3894f2f688fabc52cb</id>
  <committed-date>2007-08-02T11:21:20-07:00</committed-date>
  <authored-date>2007-08-02T11:21:20-07:00</authored-date>
  <message>make the exceptions_to_treat_as_404 method a class method, so that it can be appended to easily</message>
  <tree>666ac63ebcc06186e1731181ddac30c79814724b</tree>
  <committer>
    <name>Jamis Buck</name>
    <email>jamis@37signals.com</email>
  </committer>
</commit>
