Skip to content

Instantly share code, notes, and snippets.

@kei-s
Created November 14, 2012 10:54
Show Gist options
  • Save kei-s/4071513 to your computer and use it in GitHub Desktop.
Save kei-s/4071513 to your computer and use it in GitHub Desktop.
Catch DB connection error by exception_notification
# Catch DB connection error by exception_notification(https://github.com/smartinez87/exception_notification)
Sample::Application.configure do
#...
config.middleware.insert_before ActiveRecord::ConnectionAdapters::ConnectionManagement, ExceptionNotifier,
# settings for exception_notification
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment