Class: ActiveStatus::ApplicationController
- Inherits:
-
ActionController::API
- Object
- ActionController::API
- ActiveStatus::ApplicationController
- Defined in:
- app/controllers/active_status/application_controller.rb
Instance Method Summary collapse
Instance Method Details
#status ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/controllers/active_status/application_controller.rb', line 3 def status report = ActiveStatus::Report.new report.build if report.success? head ActiveStatus.config.success_code else render json: report.errors, status: ActiveStatus.config.error_code end end |