Class: Healthchecker::HealthController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Healthchecker::HealthController
- Defined in:
- app/controllers/healthchecker/health_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
4 5 6 7 8 |
# File 'app/controllers/healthchecker/health_controller.rb', line 4 def show checks = Healthchecker.perform_checks render status: 500, json: {status: checks} and return unless checks.empty? render json: {status: 'ok'} end |