Since exception_notification now relies on notifiers (more info at #139), all code specific to email notifications must be placed in EmailNotifier class. Besides that, configuration stuff should be passed as hash to the middleware instead of class attributes like Devise.