Class: HealthRails::HealthController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- HealthRails::HealthController
- Defined in:
- app/controllers/health_rails/health_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET /health.
Instance Method Details
#index ⇒ Object
GET /health
5 6 7 8 9 10 11 12 |
# File 'app/controllers/health_rails/health_controller.rb', line 5 def index health_check = HealthRails::HealthCheck.new if health_check.all_ok? render text: "All OK" else render text: health_check., status: :service_unavailable end end |