Created
November 14, 2012 10:54
-
-
Save kei-s/4071513 to your computer and use it in GitHub Desktop.
Catch DB connection error by exception_notification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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