Class: Tpt::Rails::ErrorTestsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Tpt::Rails::ErrorTestsController
- Defined in:
- app/controllers/tpt/rails/error_tests_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 7 8 |
# File 'app/controllers/tpt/rails/error_tests_controller.rb', line 4 def index emit_metric report_error render json: { message: "metric emitted and error reported" } end |