Class: HealthCheckController
- Inherits:
-
ApiBaseController
- Object
- ActionController::Base
- ApiBaseController
- HealthCheckController
- Defined in:
- app/controllers/health_check_controller.rb
Instance Method Summary collapse
Instance Method Details
#check ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/controllers/health_check_controller.rb', line 4 def check return bad_request unless Sequel::Model.db.synchronize { |conn| Sequel::Model.db.valid_connection?(conn) } ok rescue StandardError bad_request end |