diff options
author | Seb Bacon <seb@mysociety.org> | 2012-01-09 11:21:54 +0000 |
---|---|---|
committer | Seb Bacon <seb@mysociety.org> | 2012-01-09 11:21:54 +0000 |
commit | 57cc5eff8b5e3050e3d6a66f7167fc28af329163 (patch) | |
tree | 93e9a3749b124227fbf9e4ca393a23478513c4b9 /app/controllers/application_controller.rb | |
parent | 0015ed840ab01905cb3b25f7595bae6136b25c77 (diff) | |
parent | 322fb0a831a3da55421ea7f131785989d064bdb2 (diff) |
Merge branch 'release/0.5' into wdtk
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index b7457c48e..e30a7330e 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -14,7 +14,10 @@ class ApplicationController < ActionController::Base # Standard headers, footers and navigation for whole site layout "default" include FastGettext::Translation # make functions like _, n_, N_ etc available) - + + # Send notification email on exceptions + include ExceptionNotification::Notifiable + # Note: a filter stops the chain if it redirects or renders something before_filter :authentication_check before_filter :set_gettext_locale @@ -119,6 +122,7 @@ class ApplicationController < ActionController::Base @status = 404 else @status = 500 + notify_about_exception exception end # Display user appropriate error message @exception_backtrace = exception.backtrace.join("\n") |