first off, this thing rocks. What a great little addition.
It is missing one use case that I could find, and that is where a 404
occurs because a RoutingError occured at the controller level. If it
happens after the controller has been found (say a view or ID is
wrong), then this works. But if application.rb is not called, then it
goes back to the default rails code instead of through the exception
_notificaiton plugin.
This is easily fixed if two changes occur:
- you wrap the ExceptionNotification module around the ActionController
module like so:
module ActionController
module ExceptionNotifiable
- in init.rb, add this:
require ''exception_notifiable''
that is all it takes to self register with the ActionController::Base,
which is what I think we really want.
Jamis, what do you (or anyone else for that matter) think?
Thanks again jamis for a killer plugin,
Adam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---